stimulus-hello-world

1.0.3 • Public • Published

Stimulus Hello World Example

Usage

In your Terminal

yarn add stimulus-hello-world

within app/javascript/packs/application.js of your Rails app

import { Application } from 'stimulus'
const application = Application.start()

import HelloWorld from 'stimulus-hello-world'
application.register('hello-world', HelloWorld)

within your views

<div data-controller='hello-world'></div>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    0
  • 1.0.2
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i stimulus-hello-world

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

3.09 kB

Total Files

12

Last publish

Collaborators

  • kobaltz