Answer the question
In order to leave comments, you need to log in
What is the best way to update data in html widgets?
There are two html tables written in angular, one is the parent of the other. When you select an item in the parent table, a child table appears. The parent table has a total amount field. And in the child there are goods. When adding a new product, a request is made to the /create server, which, if successful, returns the same product, but with an id and other fields.
How better (even would say more correctly) to organize data update (total amount of goods) in the parent table?
parentItem:{
childItems:[
{id:0, titile:"title 1"},
{id:1, titile:"title 2"},
]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question