1

I have the data i want to get currency EUR value not USD how it is possible.

 [{"currency":"USD","amount":3260},
  {"currency":"EUR","amount":"320.00"}]

my code is

<div class="col-xs-6">
          <h5 ng-repeat="balance in balances">
            {{balance.amount | currencyFilter:balance.currency}} ({{balance.currency}})
          </h5>
</div>

2 Answers 2

1

If you want to display only data where currency not USD :

<div class="col-xs-6">
  <h5 ng-repeat="balance in balances | filter:{ currency : '!USD' } ">
    {{balance.amount}} ({{balance.currency}})
  </h5>
</div>
Sign up to request clarification or add additional context in comments.

1 Comment

Oh yes thats great where is my mind so silly thanks Alanib
0

Try this -

<div class="col-xs-6">
    <h5 ng-repeat="balance in balances" ng-if="balance.currency !== 'USD'">
            {{balance.amount}} ({{balance.currency}})
    </h5>
</div>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.