Created
May 12, 2016 22:17
-
-
Save SimonDoy/6c06ffa4fd7aa78829f525dd03682d08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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