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 how router libraries work <strong>and</strong> why they are a crucial<br />

addition to SPAs. We then got familiar with the key features of <strong>Vue</strong> Router<br />

including the route object, navigation guards, <strong>and</strong> the RouterLink <strong>and</strong> RouterView<br />

special components.<br />

Putting this knowledge into practice, we installed <strong>Vue</strong> Router <strong>and</strong> configured it<br />

for use in our app. We then built a home page for <strong>Vue</strong>bnb, including a gallery of<br />

listing summaries organized within image sliders.<br />

Finally, we implemented an architecture for correctly matching pages with either<br />

available local data or new data retrieved from the web service via AJAX.<br />

Now that we have a substantial number of components in our app, many of<br />

which communicate data between one another, it's time to investigate another<br />

key <strong>Vue</strong>.<strong>js</strong> tool: <strong>Vue</strong>x. <strong>Vue</strong>x is a Flux-based library that offers a superior way of<br />

managing application state.

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

Saved successfully!

Ooh no, something went wrong!