The solution of null injector error: no provider for httpclient in ionic

1. Introduce modules into app.module.ts

import { HttpClientModule } from '@angular/common/http';

2. Introduce it in @ ngmodule. Imports

@NgModule({
    ......
    imports: [
        ......
        HttpClientModule,
        ......
    ],
    ......
})

Similar Posts: