Friday, 10 March 2017

What will happen if you misspell the controller name or a property name ?


If you misspell the controller name :
  • The Angular expressions inside its scope will not be recognized.
  • You can see error in Developer tools (using F12)
To get more detailed and meaningful errors, include angular.js instead of angularjs.min.js in your HTML.









If you misspell property name in expression :

  • No error, It will return null or undefined

No comments:

Post a Comment

Note: only a member of this blog may post a comment.