restangular
restangular copied to clipboard
In the html ,couldn't get the $scope value
var school = Restangular.all('api/school');
//查看
$scope.detail = function() {
school.one("", "123").get().then(function() {
console.log("a");
$scope.ab = "t"
console.log($scope.ab)
});
$state.go("school.detail");
//$location.url("/school/detail/")
};
in the html page ,i use {{ab}} didn't get the value ,but console print the value is t