Welcome to the #resistance.

Stimulus Connect is the release tracker and news aggregator for Stimulus and its surrounding ecosystem, including StimulusReflex and CableReady.

stimulus-content-loader 3.0.0

A Stimulus controller to asynchronously load HTML from an url.

guillaumebriday guillaumebriday

Published — 7 months ago
Updated — about 21 hours ago

ajaxasynchronously-load-HTMLcontent-loaderstimulusstimulus-controllerstimulusjs

https://github.com/stimulus-components/stimulus-content-loader

https@github.com:stimulus-components/stimulus-content-loader

https://github.com/stimulus-components/stimulus-content-loader/issues

MIT

Controllers available: content-loader

Requires Stimulus 1.1.1

 

Installation

Shell
yarn add stimulus
yarn add stimulus-content-loader
index.js
import { Application } from 'stimulus'
import { definitionsFromContext } from 'stimulus/webpack-helpers'
import ContentLoader from 'stimulus-content-loader'
const application = Application.start()
const context = require.context('controllers', true, /_controller.js$/)
application.load(definitionsFromContext(context))
application.register('content-loader', ContentLoader)

Not using webpack? No problem.

Recently Updated

New Releases

Search by Tag

Swiperactioncableajaxanimated-numberapp-bridgeasynchronously-load-HTMLaudioautocompleteautosavebehaviorbindingbootstrapbulmacablecablereadycallbackscarouselcharacter-counterchartchart.jschatchattercheck-allcheckboxcheckbox-select-allcommandscommunicationcomponentscompositioncontent-loadercontrollerdata-bindingdatatablesdevelopmentdistance-from-nowdjangodomelementseventexistenceflatpickrformgetaddress.iogridheaderhelpersherokuheyhidehotkeysimageinputiosjavascriptjerksjestkeystrokelazylightboxlightgallerymapsmodalmorphdommp3on/offoverlaypaginationparticles.jsplaceholderpopoverprefetchprogress-barrailsrails-remoterails-ujsreactivereflexremoteresource-hintsresponsiverevealrollup-pluginrollup.jsrubyscroll-progressshopifyshortcutshowsliderssoundspeedssrstickystimulusstimulus-controllerstimulus-jsstimulus-reflexstimulus-togglestimulus.jsstimulus_reflexstimulusjsstimulusreflexstripestripe.jssurplusswiperjsswitchtabletabstailwindcsstestingtextareatime-agotoggletransitionsturbolinksujsuppercaseutilitesutilityuxvalidationwebdevwebsockets