How to identify whether code is running on client or server?

Posted by Jennifer | Updated on

You can use vm.$isServer method to know whether the current Vue instance is running on the server or client.

The usage would be as below:

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