Last active
April 28, 2016 15:55
-
-
Save smsohan/9902577 to your computer and use it in GitHub Desktop.
AngularJS renaming exercise
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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