I am new in Angular.js and want to know more about it. I just created a small project And want to pass multiple value with $scope object. But it's not working properly.
Here what I am doing
function ListCtrl($scope, $http,Project) {
$http.get('/project').success(function(data){
str =data.result;
var result= str.replace('http://','domainname');
$scope.projects=data.rows;
$scope.projects=data.result;
});
}
In data variable I am getting rows and result. And I am passing something like above with $scope.
Any help will be appreciated.