I am new to angularJS. I have a requirement to search on JSON data. Here is an example JSON structure
countries = [ { "country_name" : "India", "stations" : [ { "name": "Dream Factory" } ] }, { "country_name" : "Indonesia", "stations" : [ { "name": "Drummer Factory" }, { "name": "Beats" } ] } ]
Let's say I type Ind , I need countries that match the string, and return both India and Indonesia Also in the other field, enter Factory to get the names of the stations that match the string (here Drummer Factory , Dream Factory ).
What is an easy way to achieve this? Is there a built-in directive that allows this or can I use filters. If so, send an example using ...
source share