Ok, this is simple i think, but i havent tried this with json file. So the thing is that im now retrieving a whole json list like this json file: workers.json
[{
“workarea”: [“office”, “transport”, “IT”],
“picture”: “some url”,
“name”: “Mark janken”,
“age”: 30,
“location”: “holland”,
}]
And in my angular controller, im doing this right now and it works.
myApp.controller('MainController', function($scope, $http) {
$http.get('workers.json')
.success(function(data){
$scope.workers = data;
});
});
But what if i should fetch a filter and list like this on the client side?? and have multiple filters, just like this: /get-workers?location=:location
not sure how to aproach this.
Hope for some help or links. Thanks.