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.

Summary<br />

In this chapter, we saw how components are used to create reusable custom<br />

elements. We then registered our first <strong>Vue</strong>.<strong>js</strong> components, defining them with<br />

template strings.<br />

Next, we looked at component communication with props <strong>and</strong> custom events.<br />

We used this knowledge to build an image carousel within the listing page modal<br />

window.<br />

In the second half of the chapter, we got an introduction to single-file<br />

components, which we used to refactor <strong>Vue</strong>bnb into a component-based<br />

architecture. We then learned how slots can help us make more versatile<br />

components by combining parent <strong>and</strong> child content.<br />

Finally, we saw how the runtime-only build can be used to give a <strong>Vue</strong> app a<br />

smaller size.<br />

In the next chapter, we will make <strong>Vue</strong>bnb a multi-page app by building a home<br />

page, <strong>and</strong> using <strong>Vue</strong> Router to allow navigation between pages without<br />

reloading.

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

Saved successfully!

Ooh no, something went wrong!