I want to build a custom directive to have the functionality of maxlength. I can not use the default maxlength because i am using ng2-currencyMask, which in turn adds dollar($) and comma(,), sometimes dot(.) to the element. Hence maxlength is considering those characters and does allow to achieve the end result.
Any Suggestions appreciated. It would be better with an example.
By the way, the field is accepting only numbers