Re: [AngularJS] Angular run method when loading page

2014-08-29 Thread Christian Schmitt
This is simple > angularApp.run([function () { > // Your JS Code > }]); where angularApp is an angular module. Also you could have multiple runs. But be aware of the calling order. 1. app.config() 2. app.run() 3. directive compile 4. app.controller() 5. directive link > Run blocks - get e

[AngularJS] Angular run method when loading page

2014-08-29 Thread Diego Lirio
Hello, I would like to run an angular function to load the page. But not creating an initial controller method as a constructor, but when you run a specific page. Javascript for example would like this: -- You received this message because you are subscribed to the Google Groups "AngularJS"