Created
December 28, 2019 13:51
-
-
Save Ze1598/b3f6a78c76d53762e75a7cd6232a5ebb to your computer and use it in GitHub Desktop.
Reusable modal component: app.module.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { AppRoutingModule } from './app-routing.module'; | |
import { AppComponent } from './app.component'; | |
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | |
import { ModalComponent } from './components/modal/modal.component'; | |
import { MatButtonModule } from '@angular/material/button'; | |
import { MatDialogModule } from '@angular/material/dialog'; | |
@NgModule({ | |
declarations: [ | |
AppComponent, | |
ModalComponent | |
], | |
imports: [ | |
BrowserModule, | |
AppRoutingModule, | |
BrowserAnimationsModule, | |
MatButtonModule, | |
MatDialogModule | |
], | |
providers: [], | |
bootstrap: [AppComponent], | |
entryComponents: [ModalComponent] | |
}) | |
export class AppModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment