3 ms·
Regular binding in Angular is straight forward: you can pass params to child component and you can bind to events. Child does not know about parent by design. S
by tomaszs 6y ago
Regular binding in Angular is straight forward: you can pass params to child component and you can bind to events. Child does not know about parent by design. So it is a good practice baked in Angular.
If it comes to the question. I think you have answered yourself by writing React won't stop you from making bad design decisions.
- filoeleven 6y agoI was specifically talking about data fetching there. You can absolutely do the same kind of bad thing in an ngOnInit method.