You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { Controller } from "@hotwired/stimulus"
// Connects to data-controller="books"
export default class extends Controller {
connect() {
}
favourite() {
}
}
controllers/index.js
// Import and register all your controllers from the importmap under controllers/*
import { application } from "./application"
import BooksController from "./books_controller"
application.register("books", BooksController)
the suggested controllers when completing a data-controller="" attribute are books, repeated three times:
Update: It appears that the list of Registered Controllers in the Explorer panel also, after some time, updates to showing 3 Registered Controllers, when there's only 1 in the app.
The text was updated successfully, but these errors were encountered:
In a brand new Rails app with a single controller defined as so:
application.js
controllers/application.js
controllers/books_controller.js
controllers/index.js
the suggested controllers when completing a
data-controller=""
attribute arebooks
, repeated three times:Update: It appears that the list of Registered Controllers in the Explorer panel also, after some time, updates to showing 3 Registered Controllers, when there's only 1 in the app.
The text was updated successfully, but these errors were encountered: