2014-09-15 3 views
0

안녕하세요으로 부모 뷰를 사용하지만 난이 특정 상태가있을 때 위치를 볼 수는 있지만 index.html보기 내에서 중첩되지는 않습니다. 기본적으로 중첩 된 경로를 원하지만 뷰는 원하지 않습니다.UI 라우터 레이아웃

답변

0

난 그냥 귀하의 경우에는 당신

.state('overview', { url: '/all', templateUrl: '_/partial/overview/all.html', controller: 'homeCtrl' })

.state('places', { url: '/:id/place', templateUrl: '_/partial/details/detail-place.html', controller: function($scope, $stateParams) { $scope.path = $scope.paths[$stateParams.id]; } })

유사한 예에 근무

.state('locations', { url: '/locations', templateUrl: '/templates/locations/index.html', controller: 'LocationsCtrl' })

.state('show', { url: '/{location_id}', templateUrl: '/templates/locations/show.html' });

표시 상태는 위치 아래에 중첩되어서는 안됨을 의미합니다.

+0

하지만 내 경로가/locations/{location_id}에 중첩되어 있기를 바란다./locations/{location_id}/menu/{menu_id}와 같은 다른 것들을 중첩 할 수있는 것처럼 중첩에서 나오는 멋진 다른 것들이 있다고 생각한다. }/items ... 등등 – spiroski