1. Introduce modules into app.module.ts
import { HttpClientModule } from '@angular/common/http';
2. Introduce it in @ ngmodule. Imports
@NgModule({ ...... imports: [ ...... HttpClientModule, ...... ], ...... })
Similar Posts:
- [Solved] The cause of the wrong prompt instruction [ng: areq] in angular
- Angular7:Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’ [Solved]
- [Solution] systemerror: the solution of parent module ” not loaded, cannot perform relative Import
- [How to Solve] Uncaught ReferenceError: app is not defined
- Local workspace file (‘angular.json’) could not be found.
- Ionic6: did you add it to @ ngmodule.entrycomponents
- NPM err installation dependency package error [How to Solve]
- Python Attempted relative import in non-package,ImportError: cannot import name ‘xx’ from ‘__main
- [Solved] Angular creates component error: More than one module matches. Use skip-import option to skip importing the component into the closest module.
- Angular Project Download Error: [ERROR] ionic-app-scripts has unexpectedly closed (exit code 1).