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