Skip to content

Commit 710eb1f

Browse files
author
VladimirAmiorkov
committed
chore: update example to work with new ViewChild behavior of Angular 8
1 parent 1b520be commit 710eb1f

File tree

1 file changed

+1
-1
lines changed
  • app/ng-ui-category/modal-view-ng/sample-modal-view-module-example

1 file changed

+1
-1
lines changed

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", { read: ElementRef, static: false }) datePickerElement: ElementRef;
12+
@ViewChild("datepicker", { read: ElementRef, static: true }) datePickerElement: ElementRef;
1313

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

0 commit comments

Comments
 (0)