Vue developer tools

Similar to the Augury (https://chrome.google.com/webstore/detail/augury/elgalmkoelokbchhkhacckoklkejnhcd) utility that we presented in the previous chapter, Vue also has its own developer tools (https://github.com/vuejs/vue-devtools).

To install them, you can go to the official website or directly download any of the following:

We'll use the Google Chrome extension as an example here.

Once installed, if you open up a page running a Vue application and then press F12 to show the Developer Tools, you should see a Vue tab:

If you click on the Vue tab, you will be presented with the component tree of your application in the Components view:

The Components view allows you to inspect and manipulate the state of the components in your application, including their internal data.

The Vuex tab is dedicated to Vuex, the official state management solution for Vue. We will cover Vuex later in this chapter.

Finally, in the Events tab, you can gain some insight into the various events that are triggered by your application:

The Vue dev tools are very useful during development. They're also great (just like the Angular CLI) at helping juniors do more on their own.

If you're looking for a prototyping solution, then take a look at PreVue (https://prevue.io), a nice utility that you can use to quickly create prototypes.

Now, let's take a look at the official Vue CLI.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.9.236