From 3651eda6767c863c765fdde339d3fcb505144bd1 Mon Sep 17 00:00:00 2001 From: Thea Date: Sat, 12 Oct 2019 02:27:04 +0400 Subject: [PATCH] Update vue-devtools --- content/docs/en/getting-started/5-vue-devtools.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/docs/en/getting-started/5-vue-devtools.md b/content/docs/en/getting-started/5-vue-devtools.md index 7e0172fa..4073f069 100644 --- a/content/docs/en/getting-started/5-vue-devtools.md +++ b/content/docs/en/getting-started/5-vue-devtools.md @@ -36,11 +36,12 @@ To connect your application to the Vue DevTools, you need to modify `main.js` (o In your code, import `nativescript-vue-devtools` and tell NativeScript-Vue about it using `Vue.use()`. ```JavaScript -import Vue from 'nativescript-vue' import VueDevtools from 'nativescript-vue-devtools' +import Vue from 'nativescript-vue' Vue.use(VueDevtools) ``` +> Make sure you import devtools before Vue, otherwise it might not work as expected. If you are using a real device instead of an emulator, set the `host` configuration option to point to the IP of your development machine. Otherwise, your device will not be able to connect to your host machine.