Stimulus controller to remove elements from the dom, and be notified with an event when they are added.
$ yarn add stimulus-existence
Register the controller with Stimulus:
// application.js;;const application = Applicationstart;application;
Initialize the controller on a container element, use the
remove() action to delete the entire container. Listen to
existence:added events to discover when your container has been added to the dom. Useful for Rails Ujs Dom HTML additions, and hooking up with other controllers.
Fork the project.
$ yarn install
Write some tests, and add your feature. Send a PR.