From 288c583972bfe57d4cd573a5cac07378b624a12b Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Thu, 28 Oct 2021 00:20:41 +0200 Subject: [PATCH] Including full usage example --- .../1.9/assets/controllers/hello_controller.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/symfony/webpack-encore-bundle/1.9/assets/controllers/hello_controller.js b/symfony/webpack-encore-bundle/1.9/assets/controllers/hello_controller.js index 8c79f65a2..47592ef19 100644 --- a/symfony/webpack-encore-bundle/1.9/assets/controllers/hello_controller.js +++ b/symfony/webpack-encore-bundle/1.9/assets/controllers/hello_controller.js @@ -3,8 +3,9 @@ import { Controller } from 'stimulus'; /* * This is an example Stimulus controller! * - * Any element with a data-controller="hello" attribute will cause - * this controller to be executed. The name "hello" comes from the filename: + * Any HTML element with a data-controller="hello" attribute will cause this controller to be executed. Example: + *
+ * The name "hello" comes from the filename: * hello_controller.js -> "hello" * * Delete this file or adapt it for your use!