V
V
vostotskiy2017-09-26 12:46:10
Angular
vostotskiy, 2017-09-26 12:46:10

How to make one time binding friends with filtering?

Good day to all.
There is a loop for displaying a field from an object

<div ng-repeat="data in vm.items | filter: {status: vm.filterValue, title: [email protected]} |  orderBy:vm.sortParam"

In order to optimize the application, I'm trying to attach one time binding to the output page of some categories
<div ng-repeat="data in : : vm.items | filter: {status: vm.filterValue, title: [email protected]} |  orderBy:vm.sortParam"

As a result, the data loaded from the server is rendered, but not sorted or filtered.
Please tell me how to make friends with one time binding with ng-repeat and filter(orderBy) to increase application performance (by reducing the number of watchers and digest size).
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
ozknemoy, 2017-09-30
@ozknemoy

in replay it's just one watcher. the main thing inside that which is repeated is to use :: . plus use track by $index here it will significantly increase the speed on large arrays with a lot of data inside. and the speed of work with the house will catch up with react

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question