restangular icon indicating copy to clipboard operation
restangular copied to clipboard

In the html ,couldn't get the $scope value

Open Mr-Luo opened this issue 11 years ago • 0 comments

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

Mr-Luo avatar Sep 11 '15 12:09 Mr-Luo