Using Props in Vue Router
· ☕ 2 min read
Vue router can pass props to the view on invocation. This can be super useful when same views cater to different contexts, and the context is known at the time of clicking URL. Vue router just catches the context and passes it on to the view.
For example: if you want to show “My Todos” to all users, and “All Todos” to administrators.