angular.module('starter.services', [])
.controller('Friends', function() {
console.log(global);
})
angular.module('starter.anotherServices', [])
.factory('Friends', function() {
console.log(global);
})
Says I have few files for controller, factory and so on, how do I make a global variable that can be access by all of them? I have to create a .js file which will act as config like db credential and http request key.