Injecting resolves into directive controllers

后端 未结 2 1959
栀梦
栀梦 2021-02-07 23:50

I\'m using AngularUI router (0.2.13) and have a state defined as such

.state(\'foo\', { 
           template:\'
\',
2条回答
  •  走了就别回头了
    2021-02-08 00:38

    They simplified the api. See this thread:

    https://github.com/angular-ui/ui-router/issues/2664#issuecomment-204593098

    in 0.2.19 we are adding $resolve to the $scope, allowing you to do "route to component template" style

    template: ,

提交回复
热议问题