Triggering Events vs Subscribing #2478
Closed
Eonasdan
started this conversation in
Request for comment
Replies: 1 comment
-
I like the element event it allows loose coupling. This meshes well when there is also legacy code in place. For example if there is a view controller already present for client side form validation and tempus-dominus is being used as a drop-in date picker replacement. The change event name needs to be changed and thats all. Where as the subscription approach requires more retooling. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I currently do two types of event raising. One is on the element directly and the other is through the
subscription
function. This was to support a more native event system but also allowing for more of a RxJS approach.The subscribe method feels cleaner to me. Should the element events go away?
Beta Was this translation helpful? Give feedback.
All reactions