Skip to content

Instantly share code, notes, and snippets.

@yubing24
Last active August 9, 2018 16:05
Show Gist options
  • Save yubing24/a55ed0b3a68d6e238d6f45d56d29a746 to your computer and use it in GitHub Desktop.
Save yubing24/a55ed0b3a68d6e238d6f45d56d29a746 to your computer and use it in GitHub Desktop.
Necessary modules for Angular Material Side Navigation
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