Files
gocryptotrader/web/app/views/wallets/wallets.js
Scott 244cdcb48c Adds new function to interface to retrieve all enabled currency data from exchange
Implements on alphapointhttp.go
Adds new page to UI to handle exchange balances
2016-09-05 21:57:23 +10:00

29 lines
699 B
JavaScript

'use strict';
angular.module('myApp.home', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/', {
templateUrl: '/views/home/home.html',
controller: 'HomeController'
});
}])
.controller('HomeController', function ($scope, $http, Notification) {
$scope.getDashboardData = function() {
$http({
method: 'GET',
url: '/data/all-enabled-currencies'
}).
success(function (data, status, headers, config) {
$scope.exchanges = data.data;
Notification.info("Retrieved latest data");
}).
error(function (data, status, headers, config) {
console.log('error');
});
};
$scope.getDashboardData();
});