I’m new to Vue.js (I started today) and have developed a basic application. I have a searchbox in the top left corner of my app that should be accessible on every route. I want the user to be moved to a ‘results’ route once they start typing.
I think I know how to change the route, but I don’t know how one should be detecting the type/search receive events so I can send them there.
If you have any examples of this behavior (route changes on search), please send me them.
vue-instantsearch is very confusing for me unfortunately.
The whole of my
vue-instantsearch code looks like this, along with all the styling I did following the
</template> closing tag.
<ais-instant-search index-name="(index-name)" :search-client="searchClient"> <ais-search-box placeholder="Search here…"/> </ais-instant-search>