0
How can I make a percentage mask using angular 2+?
I want to apply it to my input:
<input type="text" [(ngModel)]="produto.indice_lucro" name="indicelucro" id="indicelucro" class="form-control">
<label for="indicelucro">Índice de Lucro (%)</label> <i matTooltip="Qual o percentual de lucro que você deseja lucrar com a venda desse produto?" class="fa fa-info-circle informacao" aria-hidden="true"></i>
I thought I’d use a pipe at my value:
<input type="text" value="produto.indice_lucro | percent">
It didn’t work well and I couldn’t find a tutorial that taught percentage.
how is this mask you want? shows an example
– Ricardo Pontual