title: Pass ng-model as parameter to function
body: <p>Hi I am new at angular and I want to be reuse a function to modify different models. </p>
  
  <pre><code> &lt;p ng-bind="f1" &gt;&lt;/p&gt;
   &lt;p ng-bind="f2" &gt;&lt;/p&gt;
   &lt;p ng-bind="f3" &gt;&lt;/p&gt;
   &lt;button  ng-click="write()" &gt;Save&lt;/button&gt;
  </code></pre>
  
  <p>For instance i have the above html. I want to be able to use <code>write()</code> to bind data for f1,f2 or f3 depending on which one i pass to write(). How do i inform write of the model to bind data to? In other words how do i make the function reusable.</p>