javascript - How to apply filter in Angular -
i new angular , apply filter json "place" objects.
{ "places": { "live": "true", "status": "default", "place": [ { "-name": "test", "-url": "http://myurl" }, { "-name": "test", "-url": "http://myurl" }, { "-name": "test", "-url": "http://myurl" } ] } }
i thinking of applying filter this:
<div ng-repeat="place in places | filter:{place:'http'}">
this wrong . there way apply filter "place" objects
<div ng-repeat="place in places.place">
should work think
Comments
Post a Comment