UNPKG

stimulus_reflex

Version:

Build reactive applications with the Rails tooling you already know and love.

14 lines (10 loc) 330 B
import App from '../app' export function registeredControllers () { return Array.from(App.app.router.modulesByIdentifier.keys()) } export function unloadAllControllers () { App.app.unload(registeredControllers()) } export function identifiers (controllers) { return controllers.map(controller => controller.identifier) }