I'm creating conditional event handlers in this fashion:
<section>@mouseover="this.$route.path === '/' && imgHoverIn"</section>
This, however, throws the error
"Cannot read properties of null (reading '$route')"
I'm able to include the route path as a template literal like this {{this.$route.path }} and get the expected result ('/').
Why is the variable on one hand showing up as expected and on the other hand showing up as null?