I have been working with Angular 6 recently and got a situation where I needed access parent, child and grandchild component variables. After a bit of digging here and there, I found the same question was aksed in SO.
ViewContainerRef to access parent, children and grandchildren varibales.
I created a sample StackBlitz project as part of the answer. I thought to share the SO answer and sample StackBlitz project to my website readers.
If you have any other approaches to handle the same situation, please feel free to share your thoughts in the comments section below.
Thank you! 🙂