ui-sref 一般使用在<a></a>中
<a ui-sref="message-list">消息中心</a>
$state.go('someState')一般使用在controller里面
.controller('firstCtrl',function($scope, $state) {
$state.go('login');
});
<a ui-sref="message-list">消息中心</a>
.controller('firstCtrl',function($scope, $state) {
$state.go('login');
});
本文标题:ui-sref 和 $state.go如何传递参数
本文链接:https://www.haomeiwen.com/subject/paiwmttx.html
网友评论