March 2018
Beginner to intermediate
344 pages
7h 7m
English
If we want to navigate the user backward or forward, we can use router.go; this is essentially an abstraction over the window.history API. Let's take a look at some examples:
// Navigate forward one recordthis.$router.go(1);// Navigate backward one recordthis.$router.go(-1);// Navigate forward three recordsthis.$router.go(3);// Navigate backward three recordsthis.$router.go(-3);
Read now
Unlock full access