Formly update templateOptions on click of button
问题 I'm new to formly, I want to change the templateOptions property based on value, so below is my config formlyConfig.setType({ name: 'phone', extends: 'maskedInput', defaultOptions: { templateOptions: { mask: '999-9999-9999' }, I want to change the mask to mask: '999-999-9999' on a button click, I tried to do this on onclick of button , but no change formlyConfig.setType({ name: 'phone', defaultOptions:{ templateOptions: { mask: '999-999-9999' }, } }) ; 回答1: I'm considering you're using