mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Add example of component stimulus controller naming convention
This commit is contained in:
4
app/components/example_component/example_controller.js
Normal file
4
app/components/example_component/example_controller.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// This controller will be called "example-component--example", ie "component-subdirectory--js-file-name"
|
||||
import { Controller } from "stimulus";
|
||||
|
||||
export default class extends Controller {}
|
||||
Reference in New Issue
Block a user