formbuilder error JIT 1

formbuilder error JIT

// run 
> npm i 
// then 
> npm audit fix
// and then rebuild
> ng serve

Here is what the above code is Doing:
1. We’re importing the HttpClientModule from @angular/common/http.
2. We’re adding the HttpClientModule to our imports array.
3. We’re injecting the HttpClient into our constructor.
4. We’re using the HttpClient to make a GET request to the Star Wars API.
5. We’re subscribing to the observable returned by the get() method.
6. We’re logging the response to the console.

Similar Posts