I'm really just getting started in earnest with Angular.js and one of the first things I noticed is that it doesn't often throw errors if something isn't found.
In a trivial example, if something_undefined
is undefined:
<p>{{something_undefined}}</p>
this will fail silently with:
<p></p>
In an example with a $resource
, if I made a typo like {{member.frist_name}}
I'd quite like Angular to tell me that there was no such attribute frist_name
on member
.
Just for testing purposes you can display an error message instead of empty string by
<p> {{ something_undefined || 'Not Found !!!' }} </p>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With