Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

stimulus params

// ItemController
upvote(event) {
  // { id: 12345, url: "/votes", active: true, payload: { value: 1234567 } }
  console.log(event.params) 
}

// SpinnerController
start(event) {
  // {}
  console.log(event.params) 
}
Source by stimulus.hotwired.dev #
 
PREVIOUS NEXT
Tagged: #stimulus #params
ADD COMMENT
Topic
Name
9+2 =