December 2017
Beginner to intermediate
376 pages
7h 53m
English
The route object represents the state of the currently active route and can be accessed inside the root instance, or a component instance, as this.$route. This object contains parsed information of the current URL and the route records matched by the URL:
created() { console.log(this.$route.fullPath); // /listing/1 console.log(this.$route.params); // { listing: "1" } }
Read now
Unlock full access