mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-27 23:16:51 +00:00
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:
25
web/app/components/helpers/stringUtils.js
Normal file
25
web/app/components/helpers/stringUtils.js
Normal 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;
|
||||
});
|
||||
*/
|
||||
Reference in New Issue
Block a user