I begin learning Angular.js and I have first little problem.
This is my hello.js file:
function Hello($scope, $http) {
$http.get('URL').
success(function(data) {
$scope.response = data
});}
The response is a *.json file that I need to parse. JSON looks in a way:
"data":[{
"status":"true",
"name":"blabla"
},{
"status":"true",
"name":"blabla2"
}]
In index.html file I have <div ng-controller="Hello">
where I would like to make a list of all JSON's status and name fields.
I have no idea how could I use ng-repeat
in order to make a list of all components from *.json file. Could you help me? :)
Cheers,
Luke