Instances of grandchildren


#1

To get the INSTANCE of a child component we use “#” to set a local variable.

Father.html (selector: [father])
Component-father (click) = "son.someMethod()"
Son #son

But if we want to access an instance of the grandchild? It would be logical to continue with this idea:

grandfather.ts
Father #father
Buttton click = “father.son.someMethod ()”

But this dont works !!

What is the way to get the information from a grandchild’s instance?


#2

I resolved my problem transfering the data of the son to a shared provider.