Skip to content

Instantly share code, notes, and snippets.

@SimonDoy
Created May 12, 2016 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SimonDoy/6c06ffa4fd7aa78829f525dd03682d08 to your computer and use it in GitHub Desktop.
Save SimonDoy/6c06ffa4fd7aa78829f525dd03682d08 to your computer and use it in GitHub Desktop.
'use strict';
var settingsControllerModule = angular.module('settingsController', ['configurationServiceModule']);
settingsControllerModule.controller('settingsController', ['$scope','$http','$routeParams','configurationService','adalAuthenticationService', function ($scope, $http, $routeParams, configurationService, adalService) {
$scope.userInfo = adalService.userInfo;
$scope.apiConfig={};
$http({
method:'GET',
url: configurationService.settings.apiUrl + "/configuration"
}).then(function processConfigurationResponse(response){
$scope.apiConfig=response.data;
}, function processError(response){
alert(response);
});
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment