angular_analyzer_plugin
angular_analyzer_plugin copied to clipboard
Warn users about values initialized in ngOnInit and bound in template
See here: http://stackoverflow.com/questions/39770978/dart-angular2-null-error-when-rendering-an-object-in-template/39771002#39771002
Would probably be difficult to catch, and maybe belongs in linter, but this would be a nice thing to catch.
It would also only matter if there is no wrapping element that guards against null like
<div *ngIf="myObject != null">
<div>{{myObject.myField}}</div>
<div>{{myObject.myOtherField}}</div>
<div>
which is also a common way to deal with late initialized fields if more than one binding is affected.
Exactly, the goal would be to suggest those safeguards