diff --git a/src/lib/schematics/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html b/src/lib/schematics/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html index f12c995e4f7c..b5680ef9beaa 100644 --- a/src/lib/schematics/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +++ b/src/lib/schematics/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html @@ -3,8 +3,8 @@ #drawer class="sidenav" fixedInViewport="true" - [attr.role]="isHandset$ | async ? 'dialog' : 'navigation'" - [mode]="isHandset$ | async ? 'over' : 'side'" + [attr.role]="(isHandset$ | async) ? 'dialog' : 'navigation'" + [mode]="(isHandset$ | async) ? 'over' : 'side'" [opened]="!(isHandset$ | async)"> Menu diff --git a/src/lib/schematics/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts b/src/lib/schematics/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts index b14541a89b6e..55c5db409ac5 100644 --- a/src/lib/schematics/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +++ b/src/lib/schematics/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts @@ -11,8 +11,8 @@ import { map } from 'rxjs/operators'; #drawer class="sidenav" fixedInViewport="true" - [attr.role]="isHandset$ | async ? 'dialog' : 'navigation'" - [mode]="isHandset$ | async ? 'over' : 'side'" + [attr.role]="(isHandset$ | async) ? 'dialog' : 'navigation'" + [mode]="(isHandset$ | async) ? 'over' : 'side'" [opened]="!(isHandset$ | async)"> Menu @@ -55,7 +55,7 @@ import { map } from 'rxjs/operators'; }) export class <%= classify(name) %>Component { - isHandset$: Observable = this.breakpointObserver.observe(Breakpoints.Handset) + isHandset$: Observable = this.breakpointObserver.observe(Breakpoints.Handset) .pipe( map(result => result.matches) );