Skip to content

Commit 1b520be

Browse files
author
VladimirAmiorkov
committed
chore: update breaking changes from Angular 8 rc5
1 parent 0cd5396 commit 1b520be

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

app/common-screens-category/content-screens/content-scrollable/content-scrollable-example.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export class ContentScrollablePageExampleComponent implements OnInit {
1616
public image: Image;
1717
public flex: FlexboxLayout;
1818

19-
@ViewChild("img") img: ElementRef;
20-
@ViewChild("content") content: ElementRef;
19+
@ViewChild("img", { read: ElementRef, static: false }) img: ElementRef;
20+
@ViewChild("content", { read: ElementRef, static: false }) content: ElementRef;
2121

2222
constructor(public page: Page) {
2323
this.page.backgroundSpanUnderStatusBar = true;

app/ng-ui-category/modal-view-ng/sample-modal-view-module-example/modal-view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { DatePicker } from "tns-core-modules/ui/date-picker";
99
})
1010
export class ModalViewComponent implements OnInit {
1111
public currentdate: Date;
12-
@ViewChild("datepicker") datePickerElement: ElementRef;
12+
@ViewChild("datepicker", { read: ElementRef, static: false }) datePickerElement: ElementRef;
1313

1414
constructor(private params: ModalDialogParams) {
1515
this.currentdate = new Date(params.context);

app/ng-ui-widgets-category/web-view/basic-web-view/basic-web-view.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import { Label } from "tns-core-modules/ui/label";
1212
export class BasicWebViewComponent implements AfterViewInit {
1313
public webViewSrc: string = "https://docs.nativescript.org/";
1414
public enabled: boolean = false;
15-
@ViewChild("myWebView") webViewRef: ElementRef;
16-
@ViewChild("urlField") urlFieldRef: ElementRef;
17-
@ViewChild("labelResult") labelResultRef: ElementRef;
15+
@ViewChild("myWebView", { read: ElementRef, static: false }) webViewRef: ElementRef;
16+
@ViewChild("urlField", { read: ElementRef, static: false }) urlFieldRef: ElementRef;
17+
@ViewChild("labelResult", { read: ElementRef, static: false }) labelResultRef: ElementRef;
1818

1919
ngAfterViewInit() {
2020
let webview: WebView = this.webViewRef.nativeElement;

app/ng-ui-widgets-category/web-view/events/web-view-events.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class WebViewEventsComponent {
1414
public webViewSrc = "https://docs.nativescript.org/";
1515
public isItemVisible = true;
1616

17-
@ViewChild("webview") webViewElement: ElementRef;
17+
@ViewChild("webview", { read: ElementRef, static: false }) webViewElement: ElementRef;
1818
private firstUrl = "https://google.com/";
1919
private secondUrl = "https://docs.nativescript.org/";
2020

0 commit comments

Comments
 (0)