mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(components): convert components to separate modules
This commit is contained in:
19
src/components/note/note.module.ts
Normal file
19
src/components/note/note.module.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
|
||||
import { Note } from './note';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
Note
|
||||
],
|
||||
exports: [
|
||||
Note
|
||||
]
|
||||
})
|
||||
export class NoteModule {
|
||||
public static forRoot(): ModuleWithProviders {
|
||||
return {
|
||||
ngModule: NoteModule, providers: []
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user