I have a collection of json objects, for instance:
$scope.users = [
{name:'Maria',age:25,skills["Angular.js","Node.js"]},
{name:'Maxime',age:28,skills["HTML","MongoDB"]},
{name:'Noemie',age:28,skills["CSS","MongoDB"]}
]
I am looking to create a search feature. Users should be able to input one or multiple keywords and then my application will filter the variable accordingly.
For example, if a user inputs "28" and "MongoDB", I will store these queries in an array like this:
$scope.queries = [28,"MongoDB"]
I will then filter my users array based on these queries.
It is important to mention that $scope.users is not as straightforward as the example provided; it contains nested arrays and other complex structures. Therefore, I would prefer a function that can effectively search for keywords.
I need guidance on how to implement such a function or filter.