Changes amount directive scope values to bind to parent scope property

This commit is contained in:
Sam Cheng Hung 2018-07-27 17:04:53 +08:00
commit 2b32fe9bdc
2 changed files with 4 additions and 4 deletions

View file

@ -11,8 +11,8 @@ angular.module('bitcoincom.directives')
return {
restrict: 'E',
scope: {
value: '@',
currency: '@'
value: '=',
currency: '='
},
templateUrl: 'views/includes/amount.html',
controller: ['$scope', function($scope) {

View file

@ -69,8 +69,8 @@
<div class="fee-crypto"
ng-init="fee = {value: '0.00195823', currency: 'BCH'};">
<amount
value="{{fee.value}}"
currency="{{fee.currency}}"></amount>
value="fee.value"
currency="fee.currency"></amount>
</div>
</div>