title: Formly update templateOptions on click of button
body: <p>I'm new to formly, I want to change the templateOptions property based on value,
  so below is my config</p>
  
  <pre><code> formlyConfig.setType({
        name: 'phone',
        extends: 'maskedInput',
        defaultOptions: {
  
         templateOptions: {
            mask: '999-9999-9999'
          },
  </code></pre>
  
  <p>I want to change the mask to  mask: '999-999-9999' on a button click,</p>
  
  <p>I tried to do this on onclick of button , but no change</p>
  
  <pre><code>                 formlyConfig.setType({
                      name: 'phone',
                      defaultOptions:{
                        templateOptions: {
                          mask: '999-999-9999'
                        },
                      }                     
                    })
  </code></pre>
  
  <p>;</p>