what can or cannot be done with a controller created in a module Vs
controller created globally?
Have seen various angular JS examples and I get the hint that I should
define controllers on a module rather than a global definition.
Say I have an app that has <body ng-app='mymodule'> - inside body it can
acknowledge controllers created in mymodule and controllers created
globally.
The controller defined on the module will not have access to any global
variables as compared to the global controller. True ?
Any other important points to note here ?
No comments:
Post a Comment