Globally defined AngularJS controllers and encapsulation
AngularJS supports 2 methods of registering controller functions – either as globally accessible functions (you can see this form in the mentioned tutorial) or as a part of a modules (that forms a kind of namespace). More info on modules can be found here: http://docs.angularjs.org/guide/module but in short one would register a controller in a … Read more