Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Object methods should be usable as filters #800

Closed
@jbdeboer

Description

@jbdeboer

e.g.

@NgController(
    selector: '[my-controller]',
    publishAs: 'ctrl'
)
class MyController {
   bool isPalindrome(user) {
     return true;
  }
}
<div ng-repeat="user in ['Otto', 'Notto'] | filter:ctrl.isPalindrome">
  {{user}}
</div>

Is valid, but currently barfs on "ctrl.isPalindrome" changing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions