Skip to content

Instantly share code, notes, and snippets.

@rayrutjes
Created August 14, 2017 14:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rayrutjes/b6ff0fa801c4b29f8de72239a372619e to your computer and use it in GitHub Desktop.
Save rayrutjes/b6ff0fa801c4b29f8de72239a372619e to your computer and use it in GitHub Desktop.
1-v1-vue-instantsearch.vue
<template>
<ais-index
app-id="<app-id>"
api-key="<api-key>"
index-name="<index-name>"
>
<ais-search-box></ais-search-box>
<ais-results>
<template scope="{ result }">
<h2>
<ais-highlight :result="result" attribute-name="name"></ais-highlight>
</h2>
</template>
</ais-results>
<ais-pagination></ais-pagination>
</ais-index>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment