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