This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngRepeat 'AS' can't be placed on controllerAs variable. #8438
Closed
Description
I would like to be able to place the new ngRepeat 'AS' object on my controllerAs variable.
That way, I could either write item in items | filter:x as results
or item in items | filter:x as myCtrl.results
Plunk demonstrating that this isn't currently possible:
http://plnkr.co/edit/295zNjJ6wLlKtYTXL9wA?p=preview
I really like the controllerAs syntax, and like knowing for sure which scope a variable is defined on. It seems like a step backwards to not be able to do so.