I am currently working basic angular app and database using firebase. My Question is, How to filter the records in angular once loaded all the datas from firebase. I used to find many ways in Google. Finally, i got a solutions using OrderByPriority (Object to Array). Its working fine but the problem is, I got some error when i edited the existing records. I got this below error when i edit the records when i used the OrderByPriority.
**Error:** Firebase.set failed: First argument contains undefined
Code:
data-ng-repeat="(key,person) in contactList | orderByPriority | filter:searchCategory
My Apps Screen part - I have given left navigation part only,
Category
All (5)
Family (2)
Friends (3)
My Questions are,
- How do i filter the data when i click the cateogry(Eg., All, Family, Friends etc.,) and display the records accordingly based on the selection?
- Also I need to count the records for 'All' Category.
I am waiting for your favorable reply. Thanks for advance.