Skip to content

Commit e473206

Browse files
author
VladimirAmiorkov
committed
chore: update to new Angular 8 API
1 parent 148b31d commit e473206

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: nativescript-angular/directives/templated-items-comp.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ export abstract class TemplatedItemsComponent implements DoCheck, OnDestroy, Aft
5656
protected _differ: IterableDiffer<KeyedTemplate>;
5757
protected _templateMap: Map<string, KeyedTemplate>;
5858

59-
@ViewChild("loader", { read: ViewContainerRef }) loader: ViewContainerRef;
59+
@ViewChild("loader", { read: ViewContainerRef, static: false }) loader: ViewContainerRef;
6060

6161
@Output() public setupItemView = new EventEmitter<SetupItemViewArgs>();
6262

63-
@ContentChild(TemplateRef) itemTemplateQuery: TemplateRef<ItemContext>;
63+
@ContentChild(TemplateRef, { read: TemplateRef, static: false }) itemTemplateQuery: TemplateRef<ItemContext>;
6464

6565
itemTemplate: TemplateRef<ItemContext>;
6666

Diff for: nativescript-angular/router/ns-empty-outlet.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { PageRouterOutlet } from "./page-router-outlet";
77
template: "<page-router-outlet isEmptyOutlet='true'></page-router-outlet>"
88
})
99
export class NSEmptyOutletComponent {
10-
@ViewChild(PageRouterOutlet) pageRouterOutlet: PageRouterOutlet;
10+
@ViewChild(PageRouterOutlet, { read: PageRouterOutlet, static: false }) pageRouterOutlet: PageRouterOutlet;
1111
constructor(private page: Page) {
1212
if (this.page) {
1313
this.page.actionBarHidden = true;

0 commit comments

Comments
 (0)