My application utilizes CurrencyPipe,
The current implementation is functional,
<div class="price">{{123 | currConvert | currency:'USD':true:'3.2-2'}}</div>
Now, I need to dynamically pass the currency from a model variable. This is my approach:
ngOnInit() {
this.selectedCurrency = 'USD';
}
In the template:
<div class="price">{{123 | currConvert | currency:{{selectedCurrency}}:true:'3.2-2'}}</div>
Unfortunately, this results in a template parse error. Can anyone help identify the issue?