Created
December 3, 2014 06:35
-
-
Save shengoo/e6bbcc2c4ef336532eb7 to your computer and use it in GitHub Desktop.
angularjs shared 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
"use strict"; | |
// make a common module | |
angular.module("common",[]) | |
.filter("someFilter", function (){ | |
return function (text) { | |
return text; | |
}; | |
}); | |
// use it | |
angular.module("app",["common"]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment