Last active
August 29, 2015 14:22
-
-
Save leog/9e81c0e3bba1d0714db3 to your computer and use it in GitHub Desktop.
Very simple AngularJS module to illustrate how to define a dependant module
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
angular | |
.module(‘second’, [‘first’]) | |
.filter(‘goodbye’, function() { | |
return function(name) { | |
return ‘Good bye, ‘ + name + ‘!’; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment