当我没有使用$location.url('?mobile_no=' + $scope.dash.mobile );
附加网址时,它会成功显示数据,但我只是想用上面的参数更改网址,数据应该显示为更早。实现这个目标我必须做什么?
$http.post('http://104.........../get_user_info', dashno).
success(function(data,status,header,config){
console.log("data: %j", data);
if(data.success == 1){
$location.url('?mobile_no=' + $scope.dash.mobile );
$scope.showDetails=true;
$scope.email_id = data.email_id;
$scope.user_name = data.user_name;
$scope.default_vpa = data.default_vpa;
$scope.def_vpa_name = data.def_vpa_name;
console.log('$scope.email_id'+$scope.email_id);
----------------------
----------------------