title: Is it possible to transform a value between view and model in AngularJS for input?
body: <p>New to AngularJS.  Trying to figure out how I would accomplish this, or if it is possible at all.</p>
  
  <p>I know I can bound a value to the input box by using </p>
  
  <pre><code>&lt;input type="number" ng-model="myvalue"&gt;
  </code></pre>
  
  <p>But what if I want it such that the value between the model and the view is transformed?  </p>
  
  <p>For example, for currency, I like to store my value in cents.  However, I want to allow my users to enter dollar amounts.  So I need to convert the value by a factor of 100 between the view and controller, i.e. in the model I would have 100, and in the view, I would have 1.</p>
  
  <p>Is that possible?  If so, how can I achieve that?</p>