Created
November 6, 2012 08:12
-
-
Save drphrozen/4023426 to your computer and use it in GitHub Desktop.
AngularJS minification
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('SampleModule', []) | |
.factory('SampleService', ['$resource', function(resource) { | |
// ... | |
}) | |
.controller('SampleController', ['$scope', '$resource', function(scope, resource) { | |
// ... | |
}); | |
// Alternative notation using $inject: | |
angular.module('OtherModule', []); | |
var OtherController = function(scope, resource) { | |
// ... | |
}; | |
OtherController.$inject = ['$scope', '$inject']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment