@anna_liebt wrote:
Hello,
I have 3 components A, B and C. Each componet has a modal, that opens and I can change something, for example the text of a button. This is working.
Further I have a componet1 which I can set with an array and NgFor the sequence of A’s, B’s and C’s in componet1 and set propertys to A, B and C’s. This is working.
Next I have a componet2 which has as content a list of component2. I feed component3 with an array that creates with ngfor the list and a sub array that feeds component 2 ans set the propertys of A,B and C#s This is also working.
If I tap for example on A I can change something for example a string in a button contained in A. This is working as expected.
Now I need from compont2 propertys somebody changed in A, B or C. I use @Viewchildren to get the componet1s and further I get the A, B and C’s.
But A.B. C’s property contains the initial values. For example If I set button with initial value ‘hello’ and user change it to ‘goodbye’ the button shows these change. If I get componet1 with viewchildren and further A and read the property, then it has ‘hello’ as value. Otherwise If I tap on A I can check it has ‘googbye’ as value.
Any advice what is wrong? or for what I must look or…
Best regards, anna-liebt.
Posts: 1
Participants: 1



