【腾讯云】云产品限时秒杀,爆款1核2G云服务器,首年99元

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;

posted @ 2016-05-03 14:16  happenzh  阅读(485)  评论(0编辑  收藏  举报