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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -