initial commit
This commit is contained in:
		
							
								
								
									
										9
									
								
								app/javascript/controllers/application.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								app/javascript/controllers/application.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| import { Application } from "@hotwired/stimulus" | ||||
|  | ||||
| const application = Application.start() | ||||
|  | ||||
| // Configure Stimulus development experience | ||||
| application.debug = false | ||||
| window.Stimulus   = application | ||||
|  | ||||
| export { application } | ||||
							
								
								
									
										7
									
								
								app/javascript/controllers/hello_controller.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								app/javascript/controllers/hello_controller.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| import { Controller } from "@hotwired/stimulus" | ||||
|  | ||||
| export default class extends Controller { | ||||
|   connect() { | ||||
|     this.element.textContent = "Hello World!" | ||||
|   } | ||||
| } | ||||
							
								
								
									
										4
									
								
								app/javascript/controllers/index.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								app/javascript/controllers/index.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| // Import and register all your controllers from the importmap via controllers/**/*_controller | ||||
| import { application } from "controllers/application" | ||||
| import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading" | ||||
| eagerLoadControllersFrom("controllers", application) | ||||
		Reference in New Issue
	
	Block a user
	 Stefan Tollkühn
					Stefan Tollkühn