Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // app.js
  2. angular
  3.         .module('appName', ['ngRoute'])
  4.         .constant('config', {
  5.             GOOGLE_KEY: ':)'
  6.         })
  7.         .config(routes);
  8.  
  9. // service.js
  10. angular
  11.         .module('appName')
  12.         .factory('serviceName', serviceName);
  13.  
  14.     serviceName.$inject = ['$http'];
  15.  
  16.     function serviceName($http, config) {
  17.  
  18.         console.log(config);
  19.  
  20.         ..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement