viewChild: call method from ViewChield instance in set Input Property #35552
Labels
area: core
Issues related to the framework runtime
needs reproduction
This issue needs a reproduction in order for the team to investigate further
regression
Indicates than the issue relates to something that worked in a previous version
Milestone
馃悶 bug report
Is this a regression?
Yes, the previous version in which this bug was not present was: 8Description
Hello
I have a library and my component call a method from childComponent when set a Input property.
The ViewChild uses { static: true }, but in set the property not find my child component only
in ngOnChanges, but in angular v8 works fine!
This really change in Angular 9, i can't use an ViewChild instance in set input properties?
馃敩 Minimal Reproduction
I know that i can use ngOnChanges, but would be a breaking changes because ngOnChanges isn`t fired when change the value with this.instaceComponent.title = 'HELLO';
馃敟 Exception or Error
馃實 Your Environment
Angular Version:
equal Exception or Error.
The text was updated successfully, but these errors were encountered: