【发布时间】:2018-05-28 08:02:12
【问题描述】:
如何设置查询字符串?
样本:
$location.path('/voucher-view?token=' + token);
以及如何检索该值?
样本:
var url = $location.search();
var token = url.token;
示例路线:
.state('voucher-view', {
url: '/voucher-view',
templateUrl: "templates/voucher-view.html",
controller: 'VoucherViewController'
})
【问题讨论】:
标签: angularjs ionic-framework angular-ui-router