angular state和stateParams
angular ui-route通过路由传递参数
发送ctrl
var model = { data: positionid }; $state.go('app.position.publish', model);
route
.state('xxx.xxx.xxx', { url: '/xxx', templateUrl: 'xxx/xxx/xxx/xxx.html', controller: 'xxx', params: { xxx: '' } })
接收ctrl
var xxxx= $stateParams.xxx;