Using filter : search criteria which helps to search the rows based our data in that table. here filter is not based column of the table like not Name,Gender,DateofBirth,City. ...searching performed based on data of the table.
Syntax :
<tr ng-repeat="e in employees | filter:SearchText">
filter is performed based on the data which in entered in search.
if we need in particular column of table then
ng-model="SearchText.Name"
As well we can search based ony one of the column like
SearchText.City
SearchText.DateofBirth
SearchText.Gender
as well we can search multiple columns data also and exact match also
by default checkbox is not check while page is opened so that without any search criteria data will placed as it is.
now
data will be considered---> upper and lowercase also while checkwith exactmatch criteria.
No comments:
Post a Comment