Sunday, November 8, 2015

AngularJs Issues and Solutions - 1

AngularJS Issues and Solutions (working with angularjs 1.4.x)
  • Even we write AngularJS hello world sample as below, it doesn’t work.




  • It shows error and doesn’t print actual result. It happens with the version of angular you are using.
  • Earlier versions of Angular allowed the ability to assign controller functions to the global scope like you did. Then this ability was removed from angular. There are still a lot of tutorials around that reference this older style however.

Migrating from 1.2 to 1.3

Due to 3f2232b5, $controller will no longer look for controllers on window. The old behavior of looking on window for controllers was originally intended for use in examples, demos, and toy apps. We found that allowing global controller functions encouraged poor practices, so we resolved to disable this behavior by default. You can go to below link for further details.Further Details

No comments:

Post a Comment