Skip to content

Commit a4bdf38

Browse files
committed
docs(readme): edit stackblitz preview link
1 parent b64deb9 commit a4bdf38

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828

2929
## Preview
3030

31-
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/github-epeint?file=app.vue)
31+
[![Open in
32+
StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)]
33+
(https://stackblitz.com/github/nuxt-modules/algolia?title="@nuxtjs/algolia example"&file=stackblitz/vue.js)
3234

3335
## Setup
3436

@@ -51,11 +53,11 @@ Client side:
5153

5254
```vue
5355
<script setup lang="ts">
54-
const { result, search } = useAlgoliaSearch('test_index')
56+
const { result, search } = useAlgoliaSearch("test_index");
5557
5658
onMounted(async () => {
57-
await search({ query: 'Samsung' })
58-
})
59+
await search({ query: "Samsung" });
60+
});
5961
</script>
6062
6163
<template>
@@ -67,7 +69,10 @@ Or SSR:
6769

6870
```vue
6971
<script setup lang="ts">
70-
const { data } = await useAsyncAlgoliaSearch({ indexName: 'test_index', query: 'Samsung' })
72+
const { data } = await useAsyncAlgoliaSearch({
73+
indexName: "test_index",
74+
query: "Samsung",
75+
});
7176
</script>
7277
7378
<template>

0 commit comments

Comments
 (0)