the problem is that there is no data shown in my view page when i tried to call {{name}}
.controller(‘TestController’, function($scope, $http){
$scope.getData = function(){
var myUrl = http://192.168.10.10/api/info;
$http.get(myUrl)
.success(function(data){
$scope.name=data.name;
$scope.age=data.age;
})
.error(function(data){
alert("ERROR");
});
};
})