Created
July 12, 2016 10:05
-
-
Save chekit/4d7514fc28d40a4c1c85a2cf7773fee3 to your computer and use it in GitHub Desktop.
Переиспользования результата фильтрации списка элементов
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Кратко:
ng-repeat="location in (filteredLocations = (region.cities | filter: filterRegion))"
и теперь в нашем $scope есть переменная filteredLocations, которая содержит результат работы фильтра AngularJS