Stimulus controller to remove elements from the dom, and be notified with an event when they are added.
simmerz
Published — over 1 year ago
Updated — about 3 hours ago
existencehidehotwireshowstimulus
https://gitlab.com/initforthe/stimulus-existence
https://gitlab.com/initforthe/stimulus-existence
MIT
Controllers available:
existence
Requires Stimulus 1.1.1
Installation
yarn add stimulus
yarn add stimulus-existence
import { Application } from 'stimulus'
import { definitionsFromContext } from 'stimulus/webpack-helpers'
import Existence from 'stimulus-existence'
const application = Application.start()
const context = require.context('controllers', true, /_controller.js$/)
application.load(definitionsFromContext(context))
application.register('existence', Existence)
Not using webpack? No problem.
- stimulus