File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/lib/schematics/nav/files/__path__/__name@dasherize@if-flat__ Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 33 #drawer
44 class ="sidenav "
55 fixedInViewport ="true "
6- [attr.role] ="isHandset$ | async ? 'dialog' : 'navigation' "
7- [mode] ="isHandset$ | async ? 'over' : 'side' "
6+ [attr.role] ="( isHandset$ | async) ? 'dialog' : 'navigation' "
7+ [mode] ="( isHandset$ | async) ? 'over' : 'side' "
88 [opened] ="!(isHandset$ | async) ">
99 < mat-toolbar color ="primary "> Menu</ mat-toolbar >
1010 < mat-nav-list >
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import { map } from 'rxjs/operators';
1111 #drawer
1212 class="sidenav"
1313 fixedInViewport="true"
14- [attr.role]="isHandset$ | async ? 'dialog' : 'navigation'"
15- [mode]="isHandset$ | async ? 'over' : 'side'"
14+ [attr.role]="( isHandset$ | async) ? 'dialog' : 'navigation'"
15+ [mode]="( isHandset$ | async) ? 'over' : 'side'"
1616 [opened]="!(isHandset$ | async)">
1717 <mat-toolbar color="primary">Menu</mat-toolbar>
1818 <mat-nav-list>
@@ -55,7 +55,7 @@ import { map } from 'rxjs/operators';
5555} )
5656export class < %= classify ( name ) % > Component {
5757
58- isHandset$ : Observable < BreakpointState > = this . breakpointObserver . observe ( Breakpoints . Handset )
58+ isHandset$ : Observable < boolean > = this . breakpointObserver . observe ( Breakpoints . Handset )
5959 . pipe (
6060 map ( result => result . matches )
6161 ) ;
You can’t perform that action at this time.
0 commit comments