AngularJS load service then call controller and render

后端 未结 6 1431
生来不讨喜
生来不讨喜 2020-12-28 16:29

My problem is that i need a service loaded before the controller get called and the template get rendered. http://jsfiddle.net/g75XQ/2/

Html:

<
6条回答
  •  盖世英雄少女心
    2020-12-28 16:44

    There are a few ways, some more advanced than others, but in your case ng-hide does the trick. See http://jsfiddle.net/roytruelove/g75XQ/3/

提交回复
热议问题