How to run AngularJS example

前端 未结 3 652
借酒劲吻你
借酒劲吻你 2021-01-12 15:41

I\'ve done as described here: http://docs.angularjs.org/tutorial/step_00 but can\'t run the phonecat example as AngularJS. It runs like a bunch of html files. For example, t

3条回答
  •  既然无缘
    2021-01-12 16:29

    The bootstrap part needs to be called after the element you're bootstrapping to is loaded. You can either put the bootstrap code at the end of your html, or you can use something like document ready from JQuery.

提交回复
热议问题