angularjs - Search Filter using angular, How to use '| filter: 'some text' from controller -


what wrong in this:

jsfiddle.net/tty4l/3/

i trying make filter kind of list, when enter value, 'avi', should list

  • avi
  • ravi,

i know logic so, {{['avi','ravi','raj','raghuram'] | filter:'avi'}}, not able get, how put in controller, , display there, can use $filter this, if yes, how can i.

try this:

<li ng-repeat="searchitem in searchitems | filter:searchfilter">{{searchitem}}</li> 

abd here fiddle


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -