prateek vyas

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Stimulus not autoloading controllers

i have a controller named dropdown. and this is my code
import { Controller } from "@hotwired/stimulus"

// Connects to data-controller="dropdown"
export default class extends Controller {
connect() {
alert("hi")
console.log("Hello from Drowpdown")
}
}

i can't see any output in console
rails v = 7.0.2.2
ruby v = 3.0.0

any suggestions?