Skip to content

Instantly share code, notes, and snippets.

@rolaveric
Created March 29, 2014 12:29
Show Gist options
  • Save rolaveric/9853590 to your computer and use it in GitHub Desktop.
Save rolaveric/9853590 to your computer and use it in GitHub Desktop.
Example of how annotations look in Javascript post-traceur compilation.
/*
* @NgFilter(name: 'myfilter')
* function MyFilter() {}
*/
function MyFilter() {}
MyFilter.annotations = [new NgFilter({name: 'myFilter'})];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment