File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -450,7 +450,7 @@ $scope.fallback = {
450450 };
451451```
452452```html
453- <li ng-repeat="order in orders | defaults: defaultValue ">
453+ <li ng-repeat="order in orders | defaults: fallback ">
454454 <b>id:</b> {{ order.id }},
455455 <b>name:</b> {{ order.name }},
456456 <b>shipping address:</b> {{ order.destination.zip }}
@@ -469,6 +469,11 @@ And it will cause adverse memory and performance implications.<br/>
469469//We copy it once, and it's really cheaper
470470$scope.ordersWithFallback = angular.copy($scope.orders);
471471```
472+ ```html
473+ <li ng-repeat="order in ordersWithFallback | defaults: fallback">
474+ <!-- ..... -->
475+ </li >
476+ ```
472477###where
473478comparison for each element in a collection to the given properties object,<br />
474479returning an array of all elements that have equivalent property values.
You can’t perform that action at this time.
0 commit comments