angularjs 获取地址传参

.controller('CityCtrl', function ($scope, $location,$ionicModal) {

 

注入location服务

 

$scope.name = $location.search().name;

 

赋值

posted @ 2016-10-27 10:09  fleam  阅读(387)  评论(0编辑  收藏  举报