title: angular.js - Modify a value from the model by parameter into a function
body: <p>I have the following view:</p>
  
  <pre><code>&lt;input ng-model="something" /&gt;
  &lt;button ng-click="modify(something)"&gt;Modify&lt;/button&gt;
  </code></pre>
  
  <p>And this method from the controller:</p>
  
  <pre><code>$scope.modify = function (value) {
      value = value + " and this text";
  };
  </code></pre>
  
  <p>However, the method <code>modify</code> doesn't do anything. </p>
  
  <p>What I want to do is to create a function that can modify an object from the model by parameter. I mean, a function <code>x</code> that recieves an object by parameter, and inside that function, this object (from the model) can be modified.</p>
  
  <p>How can I achieve this?</p>
  
  <p>See <a href="http://jsfiddle.net/nescalante/nb7k2/">this</a> fiddle for reference.</p>