How to change individual properties of an object in $scope
<p>If you have in the view something like:</p>

<pre><code>&lt;span ng-model="foo.bar1"&gt;&lt;/span&gt;
&lt;span ng-model="foo.bar2"&gt;&lt;/span&gt;
&lt;span ng-model="foo.bar3"&gt;&lt;/span&gt;
</code></pre>

<p>Because how Angular maps the objects you cannot do in the controller something like:</p>

<pre><code>$scope.foo.bar2 = "something";
</code></pre>

<p>Instead you need to do:</p>

<pre><code>$scope.foo = {
  bar1: "value1",
  bar2: "something",
  bar3: "value2"
}
</code></pre>

<p>So, if I need to change only one property of that object I need to reassign the other values every time?</p>