trydofor / professional-razor

Use front-end tech (Vue/Css/Ts) to build multi-platform from one codebase, suitable for small team and app to write logic once, run anywhere.
Apache License 2.0
0 stars 0 forks source link

common eventbus #11

Open trydofor opened 3 months ago

trydofor commented 3 months ago
trydofor commented 3 months ago

ES6

CustomEvent extends DOM Event

VUE

Unlike native DOM events, component emitted events do not bubble. You can only listen to the events emitted by a direct child component. If there is a need to communicate between sibling or deeply nested components, use an external event bus or a global state management solution.

trydofor commented 2 months ago