From 60b475f46cf58387c757162de1d979daad3333ce Mon Sep 17 00:00:00 2001 From: GloriousCode Date: Tue, 15 Nov 2016 21:25:06 +1100 Subject: [PATCH] Adds a base for the buy component --- web/app/components/buy/buy.html | 31 ++++++++++++++++++++++++++++++- web/app/components/buy/buy.js | 13 +++++++++++-- web/app/views/home/home.html | 6 +++--- 3 files changed, 44 insertions(+), 6 deletions(-) diff --git a/web/app/components/buy/buy.html b/web/app/components/buy/buy.html index af507e77..1eb2f6b5 100644 --- a/web/app/components/buy/buy.html +++ b/web/app/components/buy/buy.html @@ -1 +1,30 @@ -
hello world
\ No newline at end of file +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+ +
+
+
\ No newline at end of file diff --git a/web/app/components/buy/buy.js b/web/app/components/buy/buy.js index 09347802..e4081a37 100644 --- a/web/app/components/buy/buy.js +++ b/web/app/components/buy/buy.js @@ -5,7 +5,16 @@ angular.module('myApp.buy',[]).component('buy', { bindings: { message: '=' } -}).controller('BuyController', function ($scope, $http, Notification) { - alert(this.message); +}).controller('BuyController', function ($http, Notification) { + //This contrioller will retrieve all enabled exchanges, + //their enabled currencies and the currency's latest ask + //This call will be used for selling too + // + //This will allow a user to make decisions based onthe latest information to them + //It will auto poll every X seconds (at least until a push method is implemented) + //When all fields are valid, a purchase order will be sent to and handle by gocryptoServer + + //Could also hard-type the exchange and currency via attributes on the component for quick use + //Or at lest controlled by passing data from other components/data }); diff --git a/web/app/views/home/home.html b/web/app/views/home/home.html index e8f9c2e8..5e514d5e 100644 --- a/web/app/views/home/home.html +++ b/web/app/views/home/home.html @@ -1,6 +1,5 @@

Dashboard

- - +
@@ -15,8 +14,9 @@

Market depth chart

-
+

Buy

+

Sell