show only when it is ready
This commit is contained in:
parent
43adcc3806
commit
6981a5af9f
2 changed files with 4 additions and 1 deletions
|
|
@ -21,6 +21,8 @@ angular.module('bitcoincom.directives')
|
|||
},
|
||||
templateUrl: 'views/includes/formatted-amount.html',
|
||||
controller: function($scope, $timeout) {
|
||||
$scope.canShow = false;
|
||||
|
||||
if (!$scope.currency && $scope.value) { // If there is no currency available..
|
||||
// Try to extract currency from value..
|
||||
var currencySplit = $scope.value.split(" ");
|
||||
|
|
@ -120,6 +122,7 @@ angular.module('bitcoincom.directives')
|
|||
}
|
||||
break;
|
||||
}
|
||||
$scope.canShow = true;
|
||||
};
|
||||
|
||||
formatNumbers($scope.currency, $scope.value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue