This method takes a single integer as parameter that indicates by how many steps to go forward or go backward in the history stack, similar to window.history.go(n).
Examples
// go forward by one record, the same as router.forward()router.go(1)// go back by one record, the same as router.back()router.go(-1)// go forward by 3 recordsrouter.go(3)// fails silently if there aren't that many recordsrouter.go(-100)router.go(100)
// literal string pathrouter.push('/users/eduardo')// object with pathrouter.push({ path: '/users/eduardo' })// named route with params to let the router build the urlrouter.push({ name: 'user', params: { username: 'eduardo' } })// with query, resulting in /register?plan=privaterouter.push({ path: '/register', query: { plan: 'private' } })// with hash, resulting in /about#teamrouter.push({ path: '/about', hash: '#team' })