mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-15 07:26:49 +00:00
28 lines
632 B
JavaScript
28 lines
632 B
JavaScript
'use strict';
|
|
|
|
angular.module('myApp.settings', ['ngRoute'])
|
|
|
|
.config(['$routeProvider', function($routeProvider) {
|
|
$routeProvider.when('/settings', {
|
|
templateUrl: '/views/settings/settings.html',
|
|
controller: 'SettingsController'
|
|
});
|
|
}])
|
|
|
|
.controller('SettingsController', function ($scope, $http) {
|
|
$scope.getconfigData = function() {
|
|
$http({
|
|
method: 'GET',
|
|
url: '/config/all'
|
|
}).
|
|
success(function (data, status, headers, config) {
|
|
$scope.config = data;
|
|
}).
|
|
error(function (data, status, headers, config) {
|
|
console.log('error');
|
|
});
|
|
};
|
|
|
|
$scope.getconfigData();
|
|
|
|
}); |