Search
 
SCRIPT & CODE EXAMPLE
 

HTML

stimulus value

<div data-controller="loader"
     data-loader-url-value="/messages">
</div>
// controllers/loader_controller.js
import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
  static values = {
    url: String
  }

  connect() {
    fetch(this.urlValue).then(/* … */)
  }
}
Comment

PREVIOUS NEXT
Code Example
Html :: how to add text box html 
Html :: on page load animation 
Html :: img tag 
Html :: tailwind negative margin 
Html :: show/hide password html 
Html :: slick slider slidestoshow auto 
Html :: text box border css 
Html :: types of buttons in html 
Html :: autocomplete off not working in chrome 
Html :: email confirmation html template 
Html :: html comments 
Html :: progress bar bootstrap 
Html :: django html vscode 
Html :: link react to html 
Html :: how to make the border invisible in html 
Html :: english to spanish 
Html :: svg not rendering in chrome anymore 
Html :: bold text in html 
Html :: onchange for contenteditable div 
Html :: svelte pass arguments to function 
Html :: th colspan html 
Html :: html put newline in text with  
Html :: Removing leading whitespace from indented HTML source in pre/code tags 
Html :: html include html page 
Html :: fork me on github html css code 
Html :: reduce the width of google recaptcha 
Html :: responsive sidebar menu css 
Html :: react createContext usage 
Html :: htdocs 
Html :: html = sign 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =