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:
25
src/components/grid/grid.module.ts
Normal file
25
src/components/grid/grid.module.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
|
||||
import { Grid } from './grid';
|
||||
import { Row } from './row';
|
||||
import { Col } from './col';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
Grid,
|
||||
Row,
|
||||
Col
|
||||
],
|
||||
exports: [
|
||||
Grid,
|
||||
Row,
|
||||
Col
|
||||
]
|
||||
})
|
||||
export class GridModule {
|
||||
public static forRoot(): ModuleWithProviders {
|
||||
return {
|
||||
ngModule: GridModule, providers: []
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user