Skip to content

Easy pubsub for communication via DOM between elements (HTML / React / Angular, Vue)

Notifications You must be signed in to change notification settings

smff/dom-pubsub

Repository files navigation

dom-pubsub

publishDOM('ACTION_NAME', payload);

subscribeDOM('ACTION_NAME', (payload) => {
    // any action
})

subscribeDOM returns function for unsubscribe 

working in IE
SSR support

About

Easy pubsub for communication via DOM between elements (HTML / React / Angular, Vue)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published