Adds websocket support on the front end via angular-websocket

This commit is contained in:
gloriousCode
2017-03-27 18:15:14 +11:00
parent dedfad5d1f
commit 8d2551e13a
6 changed files with 37 additions and 28 deletions

View File

@@ -1,25 +1,9 @@
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;
});
*/
.filter('removeSpaces', [function() {
return function(string) {
if (!angular.isString(string)) {
return string;
}
return string.replace(/[\s]/g, '');
};
}]);