How to set a unique ID for each component instance in Vue.js?

Posted by Jennifer | Updated on

Each component has a unique id which can be accessed as this._uid. If you want more control over the ids you can for example, generate them inside a parent component.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers