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:
32
src/components/input/input.module.ts
Normal file
32
src/components/input/input.module.ts
Normal file
@ -0,0 +1,32 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
|
||||
import { NativeInput } from './native-input';
|
||||
import { NextInput } from './next-input';
|
||||
import { TextInput } from './input';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule
|
||||
],
|
||||
declarations: [
|
||||
NativeInput,
|
||||
NextInput,
|
||||
TextInput
|
||||
],
|
||||
exports: [
|
||||
NativeInput,
|
||||
NextInput,
|
||||
TextInput
|
||||
]
|
||||
})
|
||||
export class InputModule {
|
||||
public static forRoot(): ModuleWithProviders {
|
||||
return {
|
||||
ngModule: InputModule, providers: []
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user