2013-10-08 3 views
0

링크 내에 매개 변수를 넣고 싶습니다. stateParams와각도 상태 패러미터

.state('recorder.player/',{ 
     url:"/recorder", 
     templateUrl:"app/partials/recorder/recorder.html", 
     controller: "recorder" 
}) 

는하지 않습니다 :

.state('recorder.player',{ 
     url:"/recorder/:path", 
     templateUrl:"app/partials/recorder/recorder.html", 
     controller: "recorder" 
}) 

내가 기본

로 이동이를 사용하여 작동 stateParams을 참조하지 않고

<a ng-switch-when="mp3" ui-sref="recorder.player({path : file.fullPath})"> 

: 그러므로 나는이 링크를 사용

$urlRouterProvider.otherwise("/home") 
10 $digest() iterations reached. Aborting! 

답변

0

stateParameter는 경로와 충돌을 일으키는 "/"... 그게 전부와 경로를 포함 : 414,로그 캣이 말했다.

관련 문제