Skip to main content

Posts

Showing posts with the label Text filtering while using selection box in angularjs

Text filtering while using selection box in angularjs

Table of context ( click for live plunker demo ) 1. HTML Template Binding code sample 2. AngularJs code sample 3. Full example code HTML code sample ? 01 02 03 04 05 06 07 08 09 10 < div ng-app = "myApp" >    < div ng-controller = "filteringController" >      < select ng-model = "inputText" >        < option ng-repeat = "cont in countries" >{{cont.name}}</ option >      </ select >      < ul >        < li ng-repeat = "cont in countries | filter:inputText" >Ids of {{cont.name}} is {{cont.Id}}</ li >      </ ul >    </ div > </ div > <div ng-app="myApp"> <div ng-controller="filteringController"> <select ng-model="inputText"> <option ng-repeat="cont in countries"...