You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
In the case of filtered ng-repeats (ng-repeat="type in types | filter: search") it would be really useful to add something like $collection to the transcluded scope at line L276.
Then we could easily access the filtered collection in our ng-clicks and ng-class functions like we access $index.
I imagine it would be changed like the following which wouldn't incur much overhead as it is just passing an object reference:
var updateScope = function(scope, index, collection) {
scope.$collection = collection;
...
};
// then at line 364 and 377
updateScope(block.scope, index, collection);
I could probably run up a PR at some point if this is acceptable?