-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom patterns not working with AOT compiler #290
Comments
@asp-id It is an angular limitation, cause aot does not support RegExp in module imports |
as seeing here -> angulartics/angulartics2#339 |
added factory support for options in forRoot(options) in order to allow customPatterns support at root level with aot complition fixes issue: JsDaddy#290
Since angular's collector supports only a sub-set of javascript providing a plain object with |
added factory support for options in forRoot(options) in order to allow customPatterns support at root level with aot complition fixes issue: #290
@bpopnikolov Thanks . @asp-id @Phantoll you could try latest version. We will publish it today evening |
Still not working
Well, it will be nice if its mention it in documentation |
ngx-mask version - 7.3.3
angular version - 7
NgModule configuration
Usage in html template
<input matInput="" formControlName="applicationNumber" mask="Z{20}"/>
When compile with
--aot
flag (ng serve -o --aot
) mask not working. User can not enter any symbols. Unfortunately AOT compiler using by default for production mode, so custom patterns functionality is broken in prod.The text was updated successfully, but these errors were encountered: