0
I have a condition where I need to apply the monetary mask.
<td>
<div class="pull-left">{{nota.issRetido[0] === true ? nota.qtdNotasEmitidas | currency : '-'}}</div>
<div class="pull-right">{{nota.issRetido[0] === false ? nota.qtdNotasEmitidas| currency : '-'}}</div>
</td>
When passing the '| currency :' for condition when it is true, returns siyntax Syntax Error
However, this error only occurs in the condition of this if inline. How do I put the mask in this situation?
If I didn’t, it is pq returns me an error. And n has why put a code I know where the error is. And currency, as described, was trying to apply it within: {{note.issRetido[0] === false ? note.qtdNotasEmitidas | currency : '-'}}
– user108720
So in order to help, we need to test the code, to know what’s in
nota.qtdNotasEmitidas
.. etc. If you do not want to add the code, create a [mcve]. Check the version you are using from Angularjs.– NoobSaibot
Try to do with
if else
normal applying the currency– Costamilam
As it would be, this if Else normal?
– user108720