From 6b2f3a326498742027a19f1358ee24e177269252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikke=20Schir=C3=A9n?= Date: Fri, 10 Jan 2025 09:56:25 +0100 Subject: [PATCH] fix quotes in example --- docs/5.x/vue-getting-started.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/5.x/vue-getting-started.md b/docs/5.x/vue-getting-started.md index 10cfca602..c4b08ff96 100644 --- a/docs/5.x/vue-getting-started.md +++ b/docs/5.x/vue-getting-started.md @@ -62,7 +62,7 @@ class MyStore { increment() { this.myState.counter += 1; } - + decrement() { this.myState.counter -= 1; } @@ -156,7 +156,7 @@ class GoalsStore }); readonly allGoals = computed(() => readonly(this.state).goals); - + readonly currentGoal = computed(() => { const idGoal = MatomoUrl.parsed.value.idGoal; if (idGoal && this.state.goals[idGoal]) { @@ -164,7 +164,7 @@ class GoalsStore } return undefined; }); - + changeGoal(idGoal: number): void { MatomoUrl.updateHash({ // NOTE: updateHash will rewrite the entire hash, so it is important to include existing query parameters, @@ -242,18 +242,18 @@ import { AjaxHelper } from 'CoreHome'; AjaxHelper.fetch<[ResponseType1, ResponseType2]>([ { method: 'MyPlugin.firstApiRequest', - // ... + // ... }, { method: 'MyPlugin.secondApiRequest', - // ... + // ... }, ]).then(([r1, r2]) => { // use r1, r2 }); ``` -### Using Vue components outside of Vue +### Using Vue components outside of Vue Sometimes it's necessary to initiate and use a Vue component from a different context, such as in a twig template or in raw HTML. This can be accomplished through the use of the `vue-entry` attribute @@ -272,8 +272,8 @@ Add this attribute to your HTML like so: ```html
```