lass="line-numbers-rows"><a href="#C2_L1" id=C2_L1></a><a href="#C2_L2" id=C2_L2></a><a href="#C2_L3" id=C2_L3></a><a href="#C2_L4" id=C2_L4></a><a href="#C2_L5" id=C2_L5></a><a href="#C2_L6" id=C2_L6></a><a href="#C2_L7" id=C2_L7></a></span></code></pre></div>
<p><code>beforeModel()</code> receives the current transition as an argument, which we can store and retry later.
This allows us to return the user back to the original route.
For example, we might redirect a user to the login page when they try to e