feat(module): add a forRoot to the @ionic/angular module

This commit is contained in:
Ken Sodemann
2017-12-05 20:46:16 -06:00
parent ba5382e0b7
commit d5d05c67c7
2 changed files with 18 additions and 9 deletions

View File

@ -4,16 +4,15 @@ import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { AlertController } from '@ionic/angular';
import { IonicAngularModule } from '@ionic/angular';
@NgModule({
declarations: [AppComponent],
imports: [
AppRoutingModule,
BrowserModule,
],
providers: [
AlertController
IonicAngularModule.forRoot()
],
bootstrap: [AppComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]