I have a small angular app like so:
html
-
Specify the key (property) of object in filter, on which you want to apply filter:
//Suppose Object
var users = [{
"firstname": "RAM",
"lastname": "KUMAR",
"Address": "HOUSE NO-1, Example Street, Example Town"
},
{
"firstname": "SHAM",
"lastname": "RAJ K",
"Address": "HOUSE NO-1, Example Street, Example Town"
}]
But you want to apply filter only on firstname
- 热议问题