File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 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
5658onMounted(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>
You can’t perform that action at this time.
0 commit comments