How does a property of child components change without any communication between child and parent component?

How does the property of child components change without any communication between the child and parent component? Like magic, the property of child components is manipulated without parenting to the child. Can someone explain to me how this happens? Please see the code here, https://plnkr.co/edit/ucQ47vTBSOyBv8jr1qEp?p=preview I am updating the value of the form control with

SetFormByPatchValue()  {
    this.formGroup.patchValue();
}

      

The above code will manage the properties of the child component.

Example: 2 Here is a link to another plunker . You can see that I have added another date component that does not change its value when edited.

+3
angular


source to share


No one has answered this question yet

Check out similar questions:

161
Angular 2: Cannot bind to 'ngModel' as it is not a known property of 'input'
36
Retrieving a reference to a child component in a parent component
fourteen
Update parent component property from child component in Angular 2
4
How to trigger an event on a parent component from a child component that is loaded using DCL loadintolocation ()
4
Angular2: Parent and Child Component Components
2
How do I get the form values โ€‹โ€‹of the parent component along with the child component?
2
How do I submit a form from a parent component?
1
How to set the value of a child from a parent?
1
How to access HTML element values โ€‹โ€‹of Child Component in parent component in angular2?
1
Why can't I insert the values โ€‹โ€‹of child components into the parent component?



All Articles
Loading...
X
Show
Funny
Dev
Pics