node-vue | 通过node-vue-MongoDB构建项目,从构建到服务器部署 | Frontend Framework library
kandi X-RAY | node-vue Summary
kandi X-RAY | node-vue Summary
通过node-vue-MongoDB构建项目,从构建到服务器部署
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-vue
node-vue Key Features
node-vue Examples and Code Snippets
Community Discussions
Trending Discussions on node-vue
QUESTION
I am attempting to build a search engine with an Elasticsearch backend and a Vue.js front end. It is primarily based upon this tutorial. It was suggested that a nice feature would be to highlight search results with the initial search term ie if I search "foo" in the search bar, then a search result would look something like foobar.
I have tried placing the v-html block into various divs, but usually to no success.
My elastic index records that match this format:
...ANSWER
Answered 2019-Feb-05 at 07:35It's likely due to to the function call in your v-html
directive: highlight(result._source.Title)
.
Instead you should be using v-html
to bind to each result property, which allows you to replace occurrences in any of the properties before updating the template.
Try updating your code similar to the following:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-vue
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page