title: Increment variable in Angular JS?
body: <p>I have global variable <code>$scope.posts</code> in controller Angular JS:
  I do increment this variable:</p>
  
  <pre><code>$scope.posts = $scope.posts + 1;
  </code></pre>
  
  <p>So my IDE editor underlines this code and tells:</p>
  
  <blockquote>
    <p>Value assigned to primitive wil be lost</p>
  </blockquote>
  
  <p>What is mean and how to fix?</p>