4

Angular2: Error: Unhandled exception, cannot read property "classList" of null
Me: element = doucment.getElementById("nameOfObject")
Angular2: Error: Unhandled exception, cannot read property "classList" of null
Me: DoWhatIWant();
Angular2: Success!

Comments
  • 3
    Don't manipulate DOM directly with Angular, you're losing all benefits of the framework
Add Comment