I recently encountered a problem in AngularJS where the view is not updating correctly when the model value changes. It seems to be an intermittent issue where instead of displaying the new model value, it appends the old and new values together.
Upon investigation, I confirmed that the model does indeed contain the correct value.
Below is a snippet of the view code:
<div class="snippet" data-lang="js" data-hide="false" data-console="true">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code> <div class="container">
<div ng-repeat="p in point" id="{{'point-' + p.Id}}" class="{{p.BackgroundClass}}">
<div class="point-number">{{p.Id}}</div>
<div class="{{p.ImageClass}}"></div>
<div class="point-amount">{{p.Amount}}</div>
<div class="point-quantity">{{p.Quantity}}</div>
</div>
</div>