Sathishkumar Natesan PRO said 6 months ago on Hotwire Combobox :
Appreciate the useful tips along the content - 
1/ Namespacing controllers to keep them RESTful and readable.
2/ Why not to import 3rd party JS lib in index.js

And a smart work on the video edit on correcting the typo - `seaches_<resource>_path` :)

eclectic-coding PRO said 6 months ago on Hotwire Combobox :
Nice video...

I have addressed the issue with using third party stimulus controllers as well. Glad to see you covered the issue.

What I do is create a new file: for third party controllers and include in application.js:
import "@hotwired/turbo-rails"

import "./controllers"
import "./controllers/third_party_controllers"

then I can add my third party controllers:
import { application } from "./application"

// Load third party controllers
import Flatpickr from "stimulus-flatpickr"
application.register('flatpickr', Flatpickr)


Login to Comment