Skip to content
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
@joshbowdoin

Description

@joshbowdoin

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions