Skip to content

@Filter could be simpler #28

Description

@nyarly

Stock Angular 1.3:

angular.module(...).filter("name", function(){
  return function(string, expression){ ... }
})

Since every filter follows this pattern, and stateful or injected filters are discouraged, perhaps A1 could do:

@Filter
export default function(string, expression){ ... }

(at the moment, the wrapping provider function is required)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions