getting error:
inline template:16:8 caused by: No provider for Jsonp!
ORIGINAL EXCEPTION: No provider for Jsonp!
I am importing the 'HttpModule' directly into the module that the component is a part of.
You need to import and declare JsonpModule as shown below,
import { HttpModule, JsonpModule } from '@angular/http';
@NgModule({
imports: [
BrowserModule,
FormsModule,
HttpModule,
JsonpModule
],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With