Last active
January 30, 2019 12:40
-
-
Save praveenweb/7a19a94cc1ce0235650abf20032b4e26 to your computer and use it in GitHub Desktop.
Revisions
-
praveenweb revised this gist
Jan 30, 2019 . 1 changed file with 1 addition and 17 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,20 +24,4 @@ export default { title: 'Authors of Blog' } } </script> -
praveenweb created this gist
Jan 30, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,43 @@ <template> <div> <h3>Authors</h3> <ul> <li v-for="item in author" :key="item.id"> <nuxt-link :to="`/article/${item.id}`"> {{ item.name }} </nuxt-link> </li> </ul> </div> </template> <script> import author from '~/apollo/queries/fetchAuthor' export default { apollo: { author: { prefetch: true, query: author } }, head: { title: 'Authors of Blog' } } </script> <style> ul { list-style-type: none; margin: 0; padding: 0; line-height: 1.6; } a { text-decoration: none; color: #3498DB; } a:hover { border-bottom: 1px solid; } </style>