title: How to update ng-model on event click using $event in Angularjs
body: <p><a href="http://plnkr.co/ywhmyO" rel="nofollow">http://plnkr.co/ywhmyO</a></p>
  
  <p>I have tried compile and directives but I'm not getting anywhere. the compile code in the example is ripped straight off the angular website but i've no idea how to use it. Any guidance much appreciated.</p>