Created
May 26, 2015 18:14
-
-
Save rachtsingh/65944f9c536c4af63fcb to your computer and use it in GitHub Desktop.
Basic structure
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('index.controllers', []) | |
.controller('Ctrl', ['$scope', '$http', 'Service', function($scope, $http, Service){ | |
}]); | |
angular.module('index.services') | |
.factory('Service', [function(){ | |
var Service = { | |
stuff: 'here' | |
}; | |
return Service; | |
}]); | |
angular.module('index', [ | |
'index.controllers', | |
'index.services', | |
]).config(['$routeProvider', '$http', 'Service', function($routeProvider, $http, Service){ | |
// do stuff here | |
}]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment