Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // app.js
- angular
- .module('appName', ['ngRoute'])
- .constant('config', {
- GOOGLE_KEY: ':)'
- })
- .config(routes);
- // service.js
- angular
- .module('appName')
- .factory('serviceName', serviceName);
- serviceName.$inject = ['$http'];
- function serviceName($http, config) {
- console.log(config);
- ..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement