Files
gocryptotrader/web/app/components/helpers/stringUtils.js
Scott 6bad3e566a Adds "sell" component
Uses rootscope to announce when a currency + exchange is selected to allow all components to adapt to new data.
2017-01-29 20:55:11 +11:00

26 lines
708 B
JavaScript

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;
});
*/