title: How to implement an onChange function on a select box in formly with bootstrap
body: <p>After reading quite a few posts I decided that this ought to work:</p>
  
  <pre><code>vm.model.myChange = function(element) {
    console.log(element);
  }
  </code></pre>
  
  <p>.. and in the vm.fields:</p>
  
  <pre><code>{
  "key": "transportation",
  "type": "select",
  "templateOptions": {
    "label": "How do you get around in the city",
    "valueProp": "name",
    "onChange": "model.myChange()", // ADDED
    "options": [{
      "name": "Car"
    }, {
      "name": "Helicopter"
    }]
  }
  </code></pre>
  
  <p>In practice this has no effect, i.e. my function is not called.  The generated form contained no reference to my function either.</p>
  
  <p>I could not find a working example of how to do this.  Any suggestions?</p>
  
  <p>Thx. Paul</p>