Jesse Jesse - 21 days ago 5x
AngularJS Question

angular bootstrapping issues angular.bootstrap not working on my apps

I am facing an issue with bootstrapping my angular app, I went through a tutorial and even copied and pasted code to test the bootstrapping process, it didnt work. Can someone please tell me the simplest way to use

and to initialize my app with out using ng-app?


Here's an example plunk:

The relevant bit is here (where 'test' is the name of my module):

angular.element(document).ready(function() {
  angular.bootstrap(document, ['test']);

Of course if you don't want to use the whole document (equivalent of putting ng-app on the tag), you could also use jquery to find the element you wanted:

$('mydiv').ready(function() {
  angular.bootstrap($('mydiv'), ['test']);