cesarrew / ng2-currency-mask

A very simple currency mask directive that allows using a number attribute with the ngModel.
MIT License
235 stars 116 forks source link

The directive only works with input tag? #141

Closed NathanAlcantara closed 4 years ago

NathanAlcantara commented 4 years ago

I tried to use in a span tag just to display a data but don't worked.

My question is, this is the expected behavior and is not implemented or i'm doing something wrong? If is the first one, it will be soon?

I'm trying do use this way:

<span
    currencyMask
    [options]="maskOptions"
>
     {{ value }}
</span>

i tried put [ngModel]="value" and no success too

cesarrew commented 4 years ago

Yes, the directive only works in inputs.