I have a component that contain multiple level of children components :
Parent
|
Child1
|
Child2
|
Child3
I'm trying to pass a value from parent to each children through @Input()
So for example in the parent I have this :
@Input() info: Info= {} as Info;
It is initialized in ngOnInit
of the parent component and the value is OK, I checked it.
In the Template I set :
[info]="info"
Each child have the same input as the parent.
The value is correclty passed to the Child1
but from the Child2
to Child3
the value stay empty, how is that ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…