fix(angular): move module sensitive controllers out of forRoot()

This commit is contained in:
Ken Sodemann
2018-02-28 11:41:13 -06:00
parent 0fcd34e464
commit c3362fecd5

View File

@ -60,9 +60,14 @@ import { ToastController } from './providers/toast-controller';
imports: [
CommonModule,
],
providers: [
ModalController,
PopoverController,
AngularComponentMounter
],
schemas: [
CUSTOM_ELEMENTS_SCHEMA
],
]
})
export class IonicAngularModule {
static forRoot(): ModuleWithProviders {
@ -71,14 +76,11 @@ export class IonicAngularModule {
providers: [
AlertController,
ActionSheetController,
AngularComponentMounter,
App,
Events,
LoadingController,
MenuController,
ModalController,
Platform,
PopoverController,
ToastController
]
};