Emit() vs emitTo()

I want to know if there is any substantial difference between emit and emitTo.

Is it only for scoping or it has other differences i.e. performance ones, etc

Would it be ok to use just emit() for any component inside a big project?

As far as I’ve experienced it, emitTo is mostly for scoping (to components by it’s name).
Performance wise, I haven’t really noticed differences.

I think emit would be fine, but emitTo might be cleaner.

i.e. when you trigger a button or modal event, it might be better to use emitTo since you only have to update the state of that component.

1 Like