這裏是我的代碼:角UI路由器 - 嵌套的路線不上的模板嵌套的工作狀態
.state('profile',{
url : '/profile',
templateUrl: 'views/user.html',
controller: 'UserCtrl'
})
.state('profile.forgot',{
url : '/delivers',
templateUrl: 'views/user_forgot.html', <- this template not appear, when state is active
controller: 'forgotCtrl'
})
<a ui-sref="profile.forgot">Forgot your pasword?</a>
<div class="panel" ui-view=""></div>
當我點擊鏈接,在用戶界面視圖模板出現和家長狀態的控制器。 AngularJS版本是1.2.0-rc.2
我在這裏使用1.2.0-rc.3有同樣的問題。你是否找到了解決方案? – Nick
Phil Thomas的回答如下。請接受它。 – martijnve
@Nick你有沒有解決這個問題,我有同樣的問題 – vimal1083