Angular 2 Side Nav Bar
app.component.html import { Component } from '@angular/core' ; @ Component ({ selector: 'app-root' , templateUrl: './app.component.html' , styleUrls: [ './app.component.scss' ] }) export class AppComponent { title = 'app' ; isExpanded = true ; toggleFunction (): void { console . log ( 'I was clicked' ); if ( this . isExpanded ) { document . getElementById ( 'sidebar-wrapper' ). style . width = '0px' ; document . getElementById ( 'page-content-wrapper' ). style . marginLeft = '0px' ; this . isExpanded = false ; } else { document . getElementById ( 'sidebar-wrapper' ). style . width = '250px' ; document . getElementById ( 'page-content-wrapper' ). style . marginLeft = '250px' ; document . getElementById ( 'page-content-wrapper' ). style . overflowX ...