I'm using simple Angularjs filter where you can filter items in the list with the help of input. I put the code here http://plnkr.co/edit/6vDeOiGNGbblkCBOi8B7?p=preview Filter does work as intended, but if I move data from controller to json and then parse it like that
function($scope, $http) {
$http.get('companies.json').success(function(data) {
$scope.companies = data;
};
Json data renders in the ng-repeat list, but filter search doesn't work anymore. How can I apply filter with json data?
I also added json file I wanted to use to the same plunker.