0
私はui-router 1.xを使用しています。履歴を更新している間に別の状態にしようとしていますが、パラメータを失いたくありません。パラメータを保持しているUIルータの履歴
したがって、私は次の状態に移行し、URLは同じままで、戻るボタンを押すと以前の状態になりますが、同じURLを使用します。
これは私の現在の設定です:
$stateProvider
.state('parentState', {
component: 'parentComp',
})
.state('parentState.first', {
views: {
first: { component: 'firstComp'},
}
})
.state('parentState.second', {
views: {
first: { component: 'firstComp'},
second: { component: 'secondComp'},
}
})
私はこれを試してみました - そしてそれは動作しません:$state.go('parentState.second', null, {location:false, params: $stateParams});