mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +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 { CommonModule } from '@angular/common';
|
||||||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { ButtonModule } from '../button/button.module';
|
||||||
|
|
||||||
import { DateTime } from './datetime';
|
import { DateTime } from './datetime';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
ButtonModule,
|
||||||
CommonModule
|
CommonModule
|
||||||
],
|
],
|
||||||
declarations: [
|
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 { Navbar } from './navbar';
|
||||||
|
|
||||||
|
import { ButtonModule } from '../button/button.module';
|
||||||
import { IconModule } from '../icon/icon.module';
|
import { IconModule } from '../icon/icon.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
ButtonModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
IconModule
|
IconModule
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user