How can a parent component communicate with a child component without using @Input or @Output?

  • Use BehaviorSubject and Renderer2
  • Use Dependency Injection and ElementRef
  • Use EventEmitter and ViewChildren
  • Use ViewChild and ElementRef
A parent component can communicate with a child component without @Input or @Output by using ViewChild and ElementRef to access the child's properties and methods directly.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *