ngx-mask icon indicating copy to clipboard operation
ngx-mask copied to clipboard

Can't bind to 'mask' when using dynamic mask values

Open keanan-meier opened this issue 2 years ago • 1 comments

Trying to set an inputs mask using [mask] or mask={{}} results in a build error: Can't bind to 'mask' since it isn't a known property of 'input'.

The mask works correctly when used as a static value.

Works:

Does not compile: <input type="text" [mask]=inputMask/>

Does not compile:

Angular Version: 15.03

Importing and providers used:

  • NgxMaskDirective
  • NgxMaskPipe
  • provideEnviromentNgxMask

Found this old issue (closed with no reason) describing same issue and states they use lazy loaded module, which I am also using: #174

keanan-meier avatar Sep 07 '23 02:09 keanan-meier

@keanan-meier Hi. Could you provide stackblitz or another enviroment ?

andriikamaldinov1 avatar Sep 12 '23 13:09 andriikamaldinov1

This issue has been locked due to inactivity. Please file a new issue by teamplate if you are encountering a similar or related problem.

andriikamaldinov1 avatar Mar 27 '24 17:03 andriikamaldinov1