25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Vue</strong>x<br />

<strong>Vue</strong>x provides a powerful way to manage the data of an application as the<br />

complexity of the UI increases, by centralizing the application's data into a<br />

single store.<br />

We can get snapshots of the application's state by inspecting the store in <strong>Vue</strong><br />

Devtools:<br />

Figure 1.2. <strong>Vue</strong> Devtools <strong>Vue</strong>x tab The left column tracks changes made to the application data. For<br />

example, say the user saves or unsaves an item. You might name this event toggleSaved. <strong>Vue</strong> Devtools lets<br />

you see the particulars of this event as it occurs.<br />

We can also revert to any previous state of the data without having to touch the<br />

code or reload the page. This function, called Time Travel Debugging, is<br />

something you'll find very useful for debugging complex UIs.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!