Child To Parent Value access using ViewChild
Child To Parent Value access using ViewChild I have read about articles in angular6, 3 ways to communicate in child to parent.if its wrong,please demonstrate if possible 1)output emitter 2)using viewchild 3)shared Service. So here i need to understand how to communicate the viewchild from child to parent. In below demo, have created a form in child component,when child component form is valid, that should be reflected in parent component.In this demo when components gets loaded in ngafterViewInit hook the view child value , its working as expected , but when type some thing , child component form is valid,button enabled in child form ,those changes not reflected in the parent component which needs to valid , but its not working as expected. can anyone give the best approach? parent component.html <h1> Parent Component</h1> <button class="btn btn-danger " disabled="{{check}}">CheckParentEnable</button> <div class="childComponent...