mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-23 15:10:15 +00:00
24 lines
528 B
JavaScript
24 lines
528 B
JavaScript
'use strict';
|
|
|
|
/* Controllers */
|
|
|
|
angular.module('gocryptoweb.controllers', []).
|
|
controller('HomeController', function ($scope, $http) {
|
|
$scope.working = true;
|
|
$http({
|
|
method: 'GET',
|
|
url: '/data/all-enabled-currencies'
|
|
}).
|
|
success(function (data, status, headers, config) {
|
|
$scope.exchanges = data.data.exchanges;
|
|
}).
|
|
error(function (data, status, headers, config) {
|
|
console.log('error');
|
|
});
|
|
|
|
}).
|
|
controller('MyCtrl1', function ($scope) {
|
|
// write Ctrl here
|
|
|
|
});
|