formly-js / formly-js/angular-formly-website

ng-mask doesnt work conditional with expressionProperties

Open
#87 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
18
Forks
24
PR merge metrics
No merged PRs in 30d

Description

ng-mask is not working conditional..
expressionProperties: {
"templateOptions.mask": "true ? '9999999999-99' : '(999)999-999'"
},
ex: one text field need to have different format based on its previous selection.. but expressionProperties is not working with ng-mask

http://jsbin.com/wixawijuca/1/edit?js,output

can anybody has any idea how to make ng-mask conditional

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.