Skip to content

Instantly share code, notes, and snippets.

@anein
Created February 8, 2016 13:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save anein/ff0fed2bc769adfd2478 to your computer and use it in GitHub Desktop.
Save anein/ff0fed2bc769adfd2478 to your computer and use it in GitHub Desktop.
Creating an angularjs filter using ES6
class MyFilter {
static filter( value ){
return value.toLowerCase();
}
}
export default MyFilter.filter;
import filter from "./angularjs.es6.filter.js"
angular.module( "module", [] )
.filter( "awesomeFilter", () => filter );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment