I really dislike Event
s, because they have no type safety, are very prone to typos, and encourage code that is hard to read, hard to maintain, and hard to test. Direct DOM access is also frowned upon in Angular apps, and accessing private properties like _elementRef
should be avoided if at all humanly possible.
So the first thing I would do is refactor the design and make those things go away. I’m guessing you’re not going to want to hear that, though, so glancing at your stack trace, how about turning on the compiler options described in this post and seeing if anything shakes out?