Ng-repeat It's strange to write twice


#1

Duplicate values ​​were resolved using filter!!!
The biggest problem is ng-repeat
The problematic code is as follows

cartObj.cart.push( { “cart_item_id”: id , “cart_item_name”: name , “cart_item_comment”: comment, “cart_item_price”: price , “cart_item_qty”: qty } );

div style=“margin:0; padding: 50px 0 0 0” ng-controller="cartCtrl"
div ng-repeat="item in cart | unique : ‘cart_item_id’"
num: {{item.cart_item_id}}
div ng-repeat="item in cart"
div size: {{item.cart_item_comment}} div

add button one click
code: 12
123 3377 28281
382 1383 123123
383 222 123123
No problem

If you click another code and run it
code: 13

The results are as follows
code 12
123 3377 28281
382 1383 123123
383 222 123123
444 222 2222
code 13
123 3377 28281
382 1383 123123
383 222 123123
444 222 2222
I think there’s a problem with ng-repeat …

I want this

code 12
123 3377 28281
382 1383 123123
383 222 123123
code 13
444 222 2222