I need to show some definite number of decimal digit in my output [length of decimal digit is returned by stored procedure] and length of these decimal digits vary.However I do not need to care integer part it just decimal I have to worry about.Hence I used number pipe. This works fine till I pass hard coded value like this:
{{transaction.Rate| number :'.2-3'}}
It shows expected value: 713.753 [I do not care integer part]
However I have a field in transaction model called RateDecimal. I want to pass this field instead of '3' in above snippet.
{{transaction.Rate | number :'.2-`transaction.RateDecimal`'}}
It throws error. How to pass the same?Thanks for your help.