Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Sandeep Kumar
Added: Apr 7, 2018 2:03 AM
Views: 16
Tags: angularjs
  1. angular.module('WriteUp').config(['$stateProvider', '$locationProvider', '$httpProvider', 'socialProvider', function ($stateProvider, $locationProvider, $httpProvider, socialProvider) {
  2.  
  3.         //Use the HTML5 History API
  4.         if ($WU_APP_SETTINGS.html5mode) {
  5.             $locationProvider.html5Mode($WU_APP_SETTINGS.html5mode);
  6.         }
  7.  
  8.         //Add Interceptor
  9.         $httpProvider.interceptors.push('AuthInterceptorService');
  10.  
  11.         //Social Login      
  12. //        socialProvider.setGoogleKey($WU_APP_SETTINGS.social_login.google.client_id);
  13. //        socialProvider.setFbKey({appId: $WU_APP_SETTINGS.social_login.facebook.app_id, apiVersion: $WU_APP_SETTINGS.social_login.facebook.api_version});
  14.     }]);