Files
gocryptotrader/web/app/views/wallets/wallets.js
Scott 59afb3d0ba Setting up the look of the homepage design and desired features.
Removes the about page
Fixes issue with wallet linking
2016-10-17 21:31:28 +11:00

29 lines
725 B
JavaScript

'use strict';
angular.module('myApp.wallets', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/wallets', {
templateUrl: '/views/wallets/wallets.html',
controller: 'WalletsController'
});
}])
.controller('WalletsController', function ($scope, $http, Notification) {
$scope.getDashboardData = function() {
$http({
method: 'GET',
url: '/data/all-enabled-exchange-account-info'
}).
success(function (data, status, headers, config) {
$scope.wallets = data.data;
Notification.info("Got your wallet!");
}).
error(function (data, status, headers, config) {
console.log('error');
});
};
$scope.getDashboardData();
});