Adds "sell" component

Uses rootscope to announce when a currency + exchange is selected to allow all components to adapt to new data.
This commit is contained in:
Scott
2017-01-29 20:55:11 +11:00
parent fb6b1134f6
commit 6bad3e566a
10 changed files with 123 additions and 27 deletions

View File

@@ -0,0 +1,25 @@
angular.module('myApp.stringUtils', [])
.filter('removeSpaces', [function () {
return function (string) {
if (!angular.isString(string)) {
return string;
}
return string.replace(/[\s]/g, '');
};
}]);
/*
angular.module('myApp.currenctExchangeFactory', []).factory('currentExchangeCurrency', function() {
var currentExchangeAndCurrency = {};
var exchangeService = {};
exchangeService.get = function() {
return currentExchangeAndCurrency;
};
exchangeService.update = function(exchange, currency) {
currentExchangeAndCurrency.Exchange = exchange;
currentExchangeAndCurrency.Currency = currency;
};
return exchangeService;
});
*/