mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
34 lines
679 B
TypeScript
34 lines
679 B
TypeScript
import { CommonModule } from '@angular/common';
|
|
import { FormsModule } from '@angular/forms';
|
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
|
|
|
import { ButtonModule } from '../button/button.module';
|
|
import { BackdropModule } from '../backdrop/backdrop.module';
|
|
|
|
import { AlertCmp } from './alert-component';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
BackdropModule,
|
|
ButtonModule,
|
|
CommonModule,
|
|
FormsModule
|
|
],
|
|
declarations: [
|
|
AlertCmp
|
|
],
|
|
exports: [
|
|
AlertCmp
|
|
],
|
|
entryComponents: [
|
|
AlertCmp
|
|
]
|
|
})
|
|
export class AlertModule {
|
|
public static forRoot(): ModuleWithProviders {
|
|
return {
|
|
ngModule: AlertModule, providers: []
|
|
};
|
|
}
|
|
}
|