File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
projects/ng-mat-components/src/fs-nav-frame Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 3030 < ul class ="nav-links ">
3131 < li >
3232 < button mat-button *ngFor ="let item of navList " [class.active] ="item.path === isActivePath "
33- [routerLink] ="item.path "> <!-- class="badge" data-badge="2" -->
33+ [routerLink] ="item.path " (click) =" closeSidebar() " > <!-- class="badge" data-badge="2" -->
3434 < span class ="material-icons ">
3535 {{item.data?.sidenavIcon}}
3636 </ span >
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ export class FsNavFrameComponent implements OnInit {
6363 this . isClosed = ! this . isClosed ;
6464 }
6565
66+ closeSidebar ( ) {
67+ if ( ! this . isClosed ) {
68+ this . toggleSidemenu ( )
69+ }
70+ }
71+
6672 isNavActive ( name : string ) : boolean {
6773 return name === this . isActivePath ;
6874 }
You can’t perform that action at this time.
0 commit comments