'How to generate a keyword index of the content from my Vue.js App?

Examples, like Create a Search Filter with Vue.js, shows how to implement a search filter with Vue.js while they use an array that contains the keywords to search for (made by hand or fetched from a API). But how to get such an index array with keyword generate from the content out of my own Vue App? In addition, the links to the corresponding Vue pages should also be saved in this array, so that you linked to the pages by clicking on the search results.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source