forked from Especializa/nativescript-whatsapp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.module.ts
36 lines (32 loc) · 993 Bytes
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { NgModule, NgModuleFactoryLoader,
NO_ERRORS_SCHEMA } from '@angular/core';
import { NativeScriptModule } from 'nativescript-angular/nativescript.module';
import { NSModuleFactoryLoader } from 'nativescript-angular/router';
import * as platform from 'platform';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { CoreModule } from './core';
import { registerElement } from 'nativescript-angular';
import { Fab } from 'nativescript-floatingactionbutton';
registerElement('Fab', () => Fab);
@NgModule({
bootstrap: [
AppComponent,
],
imports: [
NativeScriptModule,
AppRoutingModule,
CoreModule,
],
declarations: [
AppComponent,
],
providers: [
{ provide: NgModuleFactoryLoader, useClass: NSModuleFactoryLoader },
{ provide: 'platform', useValue: platform },
],
schemas: [
NO_ERRORS_SCHEMA,
],
})
export class AppModule { }