Update
If you got this because of the NativeScript Angular2 Typescript tutorial, the next step fixes the problem (as of this writing).
Original
There seems to be no step in the textbook.
I had to add the following two lines:
// app.module.ts
import { NativeScriptHttpModule } from "nativescript-angular";
NativeScriptHttpModule
I ended up with the following (app.module.ts):
import { NgModule } from "@angular/core";
import { NativeScriptFormsModule } from "nativescript-angular/forms";
import { NativeScriptModule } from "nativescript-angular/platform";
import { NativeScriptHttpModule } from "nativescript-angular";
import { AppComponent } from "./app.component";
@NgModule({
imports: [
NativeScriptModule,
NativeScriptFormsModule,
NativeScriptHttpModule
],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule { }
source
share