mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
21 lines
701 B
TypeScript
21 lines
701 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
|
import { AppComponent } from './app.component';
|
|
import { PopupComponent } from './popup.component';
|
|
import { PopupService } from './popup.service';
|
|
|
|
// Include the `PopupService` provider,
|
|
// but exclude `PopupComponent` from compilation,
|
|
// because it will be added dynamically.
|
|
|
|
@NgModule({
|
|
imports: [BrowserModule, BrowserAnimationsModule],
|
|
providers: [PopupService],
|
|
declarations: [AppComponent, PopupComponent],
|
|
bootstrap: [AppComponent],
|
|
entryComponents: [PopupComponent],
|
|
})
|
|
export class AppModule {
|
|
}
|