Good afternoon, I am an amateur in TS and Angular2, and I ask for help from more knowledgeable people. I decided to rewrite the old interface for the store to TS and Angular
http://pastebin.com/imJmEhhn - listing
Actually the question: In the CartFront class (line 75 of the listing) I get data from the rendered _searchres json array and send them as a parameter to AddCartItem (line 86 of the listing) The function CartFront private array of the CartFront class. When I try to change the price_cena field in the same function, the price_cena field also price_cena in my item.price_cena . As a result, the _searchservice data is _searchservice .
It is likely that I do not understand some elementary things, but to be honest, I had no such problems with knockoutjs.