mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
refactor(components): add icon module and missing imports
This commit is contained in:
@ -1,10 +1,13 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
|
||||
import { ButtonModule } from '../button/button.module';
|
||||
|
||||
import { DateTime } from './datetime';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
ButtonModule,
|
||||
CommonModule
|
||||
],
|
||||
declarations: [
|
||||
|
19
src/components/icon/icon.module.ts
Normal file
19
src/components/icon/icon.module.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
|
||||
import { Icon } from './icon';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
Icon
|
||||
],
|
||||
exports: [
|
||||
Icon
|
||||
]
|
||||
})
|
||||
export class IconModule {
|
||||
public static forRoot(): ModuleWithProviders {
|
||||
return {
|
||||
ngModule: IconModule, providers: []
|
||||
};
|
||||
}
|
||||
}
|
@ -3,10 +3,12 @@ import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
|
||||
import { Navbar } from './navbar';
|
||||
|
||||
import { ButtonModule } from '../button/button.module';
|
||||
import { IconModule } from '../icon/icon.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
ButtonModule,
|
||||
CommonModule,
|
||||
IconModule
|
||||
],
|
||||
|
Reference in New Issue
Block a user