Skip to content

Instantly share code, notes, and snippets.

@smsohan
Last active April 28, 2016 15:55
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smsohan/9902577 to your computer and use it in GitHub Desktop.
Save smsohan/9902577 to your computer and use it in GitHub Desktop.
AngularJS renaming exercise
Because I think the hardest part of getting started with AngularJS is it's esoteric names, I'm suggesting the following replacements of the AngularJS terminology.
scope -> state
factory -> data/models
filter -> helper
directive {restrict: 'E'} -> custom_tag
directive {restrict: 'A'} -> custom_attribute
transclude -> layout
directive#require ^ -> require_controller
directive#require -> require_sibling
isolated scope -> new_state
& -> expression
@ -> value
= -> two_way
directive#link -> init
compile -> compile_template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment