mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00
fix(angular): move module sensitive controllers out of forRoot()
This commit is contained in:
@ -60,9 +60,14 @@ import { ToastController } from './providers/toast-controller';
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
],
|
],
|
||||||
|
providers: [
|
||||||
|
ModalController,
|
||||||
|
PopoverController,
|
||||||
|
AngularComponentMounter
|
||||||
|
],
|
||||||
schemas: [
|
schemas: [
|
||||||
CUSTOM_ELEMENTS_SCHEMA
|
CUSTOM_ELEMENTS_SCHEMA
|
||||||
],
|
]
|
||||||
})
|
})
|
||||||
export class IonicAngularModule {
|
export class IonicAngularModule {
|
||||||
static forRoot(): ModuleWithProviders {
|
static forRoot(): ModuleWithProviders {
|
||||||
@ -71,14 +76,11 @@ export class IonicAngularModule {
|
|||||||
providers: [
|
providers: [
|
||||||
AlertController,
|
AlertController,
|
||||||
ActionSheetController,
|
ActionSheetController,
|
||||||
AngularComponentMounter,
|
|
||||||
App,
|
App,
|
||||||
Events,
|
Events,
|
||||||
LoadingController,
|
LoadingController,
|
||||||
MenuController,
|
MenuController,
|
||||||
ModalController,
|
|
||||||
Platform,
|
Platform,
|
||||||
PopoverController,
|
|
||||||
ToastController
|
ToastController
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user