Im trying to get the gesture controller demo to work. Any ideas what im missing?
Im getting this error. Also the code is under the tab1 folder.
ERROR Error: Uncaught (in promise): TypeError: Cannot read property '__zone_symbol__addEventListener' of undefined```
Ok figured it out. I needed to define my viewchild differently.
This:
@ViewChild('rectangle', { static: true, read: ElementRef }) rectangle: ElementRef;
Not:
@ViewChild('rectangle') rectangle: ElementRef;
Great catch! Good to know what goes wrong and why they introduced this change - I am still a bit thinking Angular < v8… Thx for sharing your learning.
1 Like
yep hopefully this shows up in someones google search and gets them unstuck.