title: AngularJS directive input width resize by keyup
body: <p>I created a directive in order to make a input that has width automatically resized when keyup (like Google Contacts). However it seems not to be ok, because the width of each characters is different. Could you please help me to give a more optimized way? Tks.</p>
  
  <p><a href="http://plnkr.co/edit/DSn0JDDShOXvuXXF9PP2?p=preview" rel="nofollow">http://plnkr.co/edit/DSn0JDDShOXvuXXF9PP2?p=preview</a></p>