Ngx-mask: Using mask between different child modules

Created on 26 Sep 2018  路  6Comments  路  Source: JsDaddy/ngx-mask

Hi
I am using Angular 5.2
I have in my app several child modules, and when I try to add ngx-mask in root module app.module.ts as NgxMaskModule.forRoot() , it doesn't work in child module and I get error "The pipe 'mask' could not be found". Could you help me with this? I really like your lib

enhancement question

Most helpful comment

to clarify, inside of my imports in app.module im using NgxMaskModule.forRoot() and inside of my lazy loaded module lazy.module i have NgxMaskModule.forChild(). v7.3.5

All 6 comments

hi @OlgaMatosova,
thanks for issue, we will try to get the same error to figure out this problem as soon as possible.

Hi @OlgaMatosova,
We released new version 6.2.8, try it.

The same is happening to me.

ngx-mask: 6.5.18
angular: 6.0.0

I was able to get this to work by importing NgxMaskModule into my child module, and under imports i have NgxMaskModule.forChild()

to clarify, inside of my imports in app.module im using NgxMaskModule.forRoot() and inside of my lazy loaded module lazy.module i have NgxMaskModule.forChild(). v7.3.5

Thanks @taivu. Works for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TimWarp picture TimWarp  路  4Comments

sbeka picture sbeka  路  3Comments

salazarr-js picture salazarr-js  路  3Comments

tanjuyayak picture tanjuyayak  路  3Comments

ghost picture ghost  路  3Comments