demo-angular/app/app.module.ts
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptModule } from "nativescript-angular/nativescript.module";
import { FabricModule } from 'nativescript-fabric/angular';
import { AppRoutingModule } from "./app.routing";
import { AppComponent } from "./app.component";
import { ItemService } from "./item/item.service";
import { ItemsComponent } from "./item/items.component";
import { ItemDetailComponent } from "./item/item-detail.component";
@NgModule({
bootstrap: [
AppComponent
],
imports: [
NativeScriptModule,
AppRoutingModule,
FabricModule.forRoot(),
],
declarations: [
AppComponent,
ItemsComponent,
ItemDetailComponent,
],
providers: [
ItemService,
],
schemas: [
NO_ERRORS_SCHEMA,
]
})
/*
Pass your application module to the bootstrapModule function located in main.ts to start your app
*/
export class AppModule { }