Skip to content

Instantly share code, notes, and snippets.

@clonn
Last active August 29, 2015 14:00
Show Gist options
  • Save clonn/11283289 to your computer and use it in GitHub Desktop.
Save clonn/11283289 to your computer and use it in GitHub Desktop.
app = angular.module("myApp", ["service.create"])
angular.module("myApp").controller("testCtrl", function($scope, create) {
return console.log(create);
});
angular.module("service.create", []).factory('create', function() {
var self;
self = {
"status": "hello"
};
return self;
});
@tomchentw
Copy link

I will use
angular.module("myApp", ["myApp.controllers", "myApp.services"]);

angular.module("myApp.controllers", ["ui.router"]);

angular.module("myApp.services", ["ui.bootstrap"]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment