In Angular ui-router nested state url changes,but template is not loading

前端 未结 6 982
滥情空心
滥情空心 2020-12-08 19:04

I am using ui-router for nested states & views. When I click on the link, the URL changes to the URL for the substate, but the template does not load.

For exampl

6条回答
  •  既然无缘
    2020-12-08 19:20

    I had the same issue and the solution was to place ui-view to your parent's template. Because your partials also need a too, if they will be loading a template from a child state. See here https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions#issue-my-templates-are-not-appearing--loading--showing

提交回复
热议问题