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.

The route object<br />

The route object represents the state of the currently active route <strong>and</strong> can be<br />

accessed inside the root instance, or a component instance, as this.$route. This<br />

object contains parsed information of the current URL <strong>and</strong> the route records<br />

matched by the URL: created() { console.log(this.$route.fullPath); // /listing/1<br />

console.log(this.$route.params); // { listing: "1" } }

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

Saved successfully!

Ooh no, something went wrong!