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` :)
import { application } from "./application"
// Load third party controllers
import Flatpickr from "stimulus-flatpickr"
application.register('flatpickr', Flatpickr)
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` :)
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:
then I can add my third party controllers: