Skip to content

Commit

Permalink
chore(lint): remove usage of this in template
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Mar 6, 2021
1 parent 2f55638 commit 908d252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/error/layouts/error.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<h1>Error</h1>
<p>Details: {{ this.$route.path === '/squared' ? error.response.data : error.message }}</p>
<p>Details: {{ $route.path === '/squared' ? error.response.data : error.message }}</p>

<nuxt-link to="/">
back
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/split-layouts-error/layouts/error.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<h1>Error</h1>
<p>Details: {{ this.$route.path === '/squared' ? error.response.data : error.message }}</p>
<p>Details: {{ $route.path === '/squared' ? error.response.data : error.message }}</p>

<nuxt-link to="/">
back
Expand Down

0 comments on commit 908d252

Please sign in to comment.