Is angularjs capable of filtering based on keywords?
- by Alex90
I have 30 categories in mysql.
I have 450 subcategories which are related to the 30 categories in another table.
Categories table
id _ title _ Keywords
1 _ Animals _ animal, animals, pet, parrot
2 _ Books _ books, book, educational
n _ xxx _ xxx
Subcategories table
id _ ref _ title _ keywords
1 _ 1 _ cats _ cats, persian cat, bengal cat
2 _ 1 _ dogs _ dogs, labrador, golder retriver
3 _ 2 _ Classic _ The davinci code, books, book, classical books
I need to implement the filter to a textfield. If the users enters labrador in the textfield then show the categories or/and subcategories which contain 'labrador' in the keywords.
In this case the "dogs" subcategory would appear!
I know that this has been done using jquery. But is there anyway to implement this with angularJs?
If you got a jsfiddle then it would be awesome! :)
Thank you