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 3
3
#drawer
4
4
class ="sidenav "
5
5
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' "
8
8
[opened] ="!(isHandset$ | async) ">
9
9
< mat-toolbar color ="primary "> Menu</ mat-toolbar >
10
10
< mat-nav-list >
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import { map } from 'rxjs/operators';
11
11
#drawer
12
12
class="sidenav"
13
13
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'"
16
16
[opened]="!(isHandset$ | async)">
17
17
<mat-toolbar color="primary">Menu</mat-toolbar>
18
18
<mat-nav-list>
@@ -55,7 +55,7 @@ import { map } from 'rxjs/operators';
55
55
} )
56
56
export class < %= classify ( name ) % > Component {
57
57
58
- isHandset$ : Observable < BreakpointState > = this . breakpointObserver . observe ( Breakpoints . Handset )
58
+ isHandset$ : Observable < boolean > = this . breakpointObserver . observe ( Breakpoints . Handset )
59
59
. pipe (
60
60
map ( result => result . matches )
61
61
) ;
You can’t perform that action at this time.
0 commit comments