Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

chore: run explicit static-query timing migration #587

Merged
merged 2 commits into from
May 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/pages/component-sidenav/component-sidenav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class ComponentSidenav implements OnInit {
.pipe(map(breakpoint => breakpoint.matches));
}

@ViewChild(MatSidenav) sidenav: MatSidenav;
@ViewChild(MatSidenav, {static: false}) sidenav: MatSidenav;

ngOnInit() {
// Combine params from all of the path into a single object.
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/component-viewer/component-viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export class ComponentViewer implements OnDestroy {
encapsulation: ViewEncapsulation.None,
})
export class ComponentOverview implements OnInit {
@ViewChild('initialFocusTarget') focusTarget: ElementRef;
@ViewChild('toc') tableOfContents: TableOfContents;
@ViewChild('initialFocusTarget', {static: false}) focusTarget: ElementRef;
@ViewChild('toc', {static: false}) tableOfContents: TableOfContents;
showToc: Observable<boolean>;

constructor(public componentViewer: ComponentViewer, breakpointObserver: BreakpointObserver) {
Expand Down