V
V
Vitaliy Semyanchuk2014-09-20 14:54:20
Angular
Vitaliy Semyanchuk, 2014-09-20 14:54:20

How to make ng-repeat orderBy work after adding an element?

Good afternoon.
For one application, I use the angular ng-repeat function to display information, and filter it. The problem is that I need to add elements to the page and then filter them, and it only filters the information that was loaded when the application loaded. Here's an example:
jsfiddle.net/rp8q8bs3/1
If we add the letter "E" and try to filter, only the letters "ABCD" are filtered, and the object with the property name : E is not filtered. Maybe someone faced such a problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
denver, 2014-09-20
@fix20152

What is wrong with the example? :)
"E" is in last place both alphabetically and by number. Enter some number instead of "E".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question