We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6abe423 commit cdd907dCopy full SHA for cdd907d
docs/assets/js/controllers/clipboard.ts
@@ -1,8 +1,7 @@
1
-import * as Stimulus from "stimulus";
+import { Application, Controller } from "stimulus";
2
3
(function(){
4
- var application = Stimulus.Application.start();
5
- application.register("clipboard", class extends Stimulus.Controller {
+ Application.start().register("clipboard", class extends Controller {
6
static targets = ["source"];
7
sourceTarget!: HTMLElement;
8
0 commit comments