Changes amount directive scope values to bind to parent scope property
This commit is contained in:
parent
47de79cc64
commit
2b32fe9bdc
2 changed files with 4 additions and 4 deletions
|
|
@ -11,8 +11,8 @@ angular.module('bitcoincom.directives')
|
||||||
return {
|
return {
|
||||||
restrict: 'E',
|
restrict: 'E',
|
||||||
scope: {
|
scope: {
|
||||||
value: '@',
|
value: '=',
|
||||||
currency: '@'
|
currency: '='
|
||||||
},
|
},
|
||||||
templateUrl: 'views/includes/amount.html',
|
templateUrl: 'views/includes/amount.html',
|
||||||
controller: ['$scope', function($scope) {
|
controller: ['$scope', function($scope) {
|
||||||
|
|
|
||||||
|
|
@ -69,8 +69,8 @@
|
||||||
<div class="fee-crypto"
|
<div class="fee-crypto"
|
||||||
ng-init="fee = {value: '0.00195823', currency: 'BCH'};">
|
ng-init="fee = {value: '0.00195823', currency: 'BCH'};">
|
||||||
<amount
|
<amount
|
||||||
value="{{fee.value}}"
|
value="fee.value"
|
||||||
currency="{{fee.currency}}"></amount>
|
currency="fee.currency"></amount>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue