You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve been switching my guide over to using the @ViewChild decorator to get references to views within templates, but one weird thing I found is that I can’t use the technique to get a reference to a <ListView> element.
That is, if I use the following syntax:
<ListView #foo ...></ListView>
@ViewChild("foo") foo: ElementRef;
this.foo is undefined. If I move #foo to another element—e.g. <Image #foo>—the reference is resolved as expected.