25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Summary<br />

In this chapter, we learned about <strong>Vue</strong>x, <strong>Vue</strong>'s official state management library,<br />

which is based on the Flux architecture. We installed <strong>Vue</strong>x in <strong>Vue</strong>bnb <strong>and</strong> set up<br />

a store where global state could be written <strong>and</strong> retrieved.<br />

We then learned the main features of <strong>Vue</strong>x including state, mutator methods <strong>and</strong><br />

getters, <strong>and</strong> how we can debug <strong>Vue</strong>x using <strong>Vue</strong> Devtools. We used this<br />

knowledge to implement a listing save component, which we then added to our<br />

main pages.<br />

Lastly, we married <strong>Vue</strong>x <strong>and</strong> <strong>Vue</strong> Router to allow page state to be more<br />

efficiently stored <strong>and</strong> retrieved when the route changes.<br />

In the next chapter, we'll cover one of the trickiest topics of full-stack apps -<br />

authentication. We'll add a user profile to <strong>Vue</strong>bnb so a user can persist their<br />

saved items to the database. We'll also continue to add to our knowledge of <strong>Vue</strong>x<br />

by utilizing some of its more advanced features.

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

Saved successfully!

Ooh no, something went wrong!