リンク内にいくつかのパラメーターを配置したいと思います。したがって、私はこのリンクを使用します:
<a ng-switch-when="mp3" ui-sref="recorder.player({path : file.fullPath})">
stateParams を参照しなくても機能します。
.state('recorder.player/',{
url:"/recorder",
templateUrl:"app/partials/recorder/recorder.html",
controller: "recorder"
})
stateParams を使用すると、次のことができなくなります。
.state('recorder.player',{
url:"/recorder/:path",
templateUrl:"app/partials/recorder/recorder.html",
controller: "recorder"
})
これを使用して、デフォルトに移動します
$urlRouterProvider.otherwise("/home")
LogCat は次のように述べています。
10 $digest() iterations reached. Aborting!