mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
refactor(components): convert components to separate modules
This commit is contained in:
27
src/components/app/app.module.ts
Normal file
27
src/components/app/app.module.ts
Normal file
@ -0,0 +1,27 @@
|
||||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
|
||||
import { IonicApp } from './app-root';
|
||||
|
||||
import { NavModule } from '../nav/nav.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
NavModule
|
||||
],
|
||||
declarations: [
|
||||
IonicApp
|
||||
],
|
||||
exports: [
|
||||
IonicApp
|
||||
],
|
||||
entryComponents: [
|
||||
IonicApp
|
||||
]
|
||||
})
|
||||
export class AppModule {
|
||||
public static forRoot(): ModuleWithProviders {
|
||||
return {
|
||||
ngModule: AppModule, providers: []
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user