A
A
Alexander2017-08-09 11:43:11
Layout
Alexander, 2017-08-09 11:43:11

Table of changes between two objects?

Hello colleagues! I wanted to ask for advice: how best to make a table of changes in angular? That is, for example, the user wants to change something in his interface -> changes -> clicks on the update button -> he is shown a modal with old values ​​and new ones (there can be many changed fields, not just one). How can this be done in angular js? So far, only 2 options come to mind. Hang on all ng-change inputs and see what has changed (but this is a bad way, because there are a lot of fields), or make two objects and compare them with each other. Maybe there are already some solutions that you can look at? Many thanks in advance to everyone!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Valentin, 2019-03-25
@romanko_vn

I need the block on the left to always be square

And that its form can change?

A
Artem Vedishchev, 2019-03-25
@Artem-V

Read here, in my opinion you can do this
https://ru.stackoverflow.com/questions/561393/High...

B
Boris Sviridov, 2019-03-25
@thunder_thurth

you can use flex to
wrap both in a common container and wrap them themselves and set the parent.
Set align-items, align-content: stretch to equal height of items in a row

A
Alexey Shashenkov, 2017-08-09
@alex_p95

Here is my version of a deep comparison of the properties of arrays and
objects

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question