Skip to content

Commit c3070e1

Browse files
committed
Move script to inside component HTML.
1 parent 677ea94 commit c3070e1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

example/unicorn/templates/unicorn/hello-world-test.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
<div>
1414
Request path context variable: '{{ request.path }}'
1515
</div>
16-
</div>
1716

18-
<script type="application/javascript">
19-
window.addEventListener('DOMContentLoaded', (event) => {
20-
Unicorn.addEventListener('updated', (component) => console.log('got updated', component));
21-
});
22-
</script>
17+
<script type="application/javascript">
18+
window.addEventListener('DOMContentLoaded', (event) => {
19+
Unicorn.addEventListener('updated', (component) => console.log('got updated', component));
20+
});
21+
22+
</script>
23+
</div>

0 commit comments

Comments
 (0)