Last active
August 9, 2018 16:05
-
-
Save yubing24/a55ed0b3a68d6e238d6f45d56d29a746 to your computer and use it in GitHub Desktop.
Necessary modules for Angular Material Side Navigation
This file contains 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 {AppComponent} from './app.component'; | |
import { | |
MatButtonModule, | |
MatExpansionModule, | |
MatIconModule, | |
MatListModule, | |
MatMenuModule, | |
MatSidenavModule, | |
MatToolbarModule | |
} from '@angular/material'; | |
import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; | |
import {CommonModule} from '@angular/common'; | |
import {AppRoutingModule} from './app-routing.module'; | |
import {DashboardComponent} from './dashboard/dashboard.component'; | |
import {ProfileComponent} from './profile/profile.component'; | |
import {RouterModule} from '@angular/router'; | |
@NgModule({ | |
declarations: [ | |
AppComponent, | |
DashboardComponent, | |
ProfileComponent, | |
], | |
imports: [ | |
BrowserModule, | |
BrowserAnimationsModule, | |
CommonModule, | |
RouterModule, | |
AppRoutingModule, | |
MatButtonModule, | |
MatExpansionModule, | |
MatIconModule, | |
MatListModule, | |
MatMenuModule, | |
MatSidenavModule, | |
MatToolbarModule, | |
], | |
providers: [], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment