Skip to content
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 opened this issue Mar 25, 2014 · 2 comments
Closed

Object methods should be usable as filters #800

jbdeboer opened this issue Mar 25, 2014 · 2 comments
Milestone

Comments

@jbdeboer
Copy link
Contributor

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

@mhevery
Copy link
Contributor

mhevery commented Mar 30, 2014

Here is a proposed fix: https://github.com/mhevery/angular.dart/tree/issue-800 But it is blocked on http://dartbug.com/13002 Perhaps we can implement it all to verify that it works (it will fail dart2js) and then wait for dart2js fix before we can merge it in.

@mhevery mhevery modified the milestones: 0.10.0, 0.12.0 Apr 16, 2014
@mvuksano
Copy link
Contributor

Closed via #934

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants