Best Practice for Handling Events in Subcomponents?


#1

If my component is a container of other components, is there a best practice to bind events such as swipe on the Sub components, like cards or items for example.


#2

Use the @Output is best practice


#3

What if the sub components are defined by the user?

For example, when using <ng-content></ng-content> in my component’s template.


#4

Hmm, well this one would require you think to think ahead of time what kind of event you want your users to be able to use. You can always use the inline gestures.