Last active
September 15, 2022 09:54
-
-
Save SarahElson/1426b2ab1e0864e793c098ff3b82c63f to your computer and use it in GitHub Desktop.
Getting Started With Nuxt Testing [A Beginner’s Guide]
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 characters
pages/index.vue | |
<template> | |
<div class="max-w-sm mx-auto mt-8"> | |
<div> | |
<h2 class="text-xl"> | |
Job Board | |
</h2> | |
<span class="text-xs block pb-4">Awesome Jobs for awesome IT people</span> | |
</div> | |
<div class="shadow overflow-hidden sm:rounded-md"> | |
<ul id="job-list" role="list" class="divide-y divide-gray-200"> | |
<JobItem v-for="job in jobs" :key="job.title" :Designationtitle="job.Designationtitle" :salarycompensation="job.salarycompensation" :hyperlink="job.hyperlink" /> | |
</ul> | |
</div> | |
</div> | |
</template> | |
<script> | |
export default { | |
data () { | |
return { | |
jobs: [ | |
{ | |
title: 'Java Developer', | |
salary: '90000', | |
link: '/job/java-developer' | |
}, | |
{ | |
title: 'Devops Developer', | |
salary: '120000', | |
link: '/job/devops-developer' | |
}, | |
{ | |
title: 'Reactjs Developer', | |
salary: '21000', | |
link: '/job/reactjs-developer' | |
} | |
] | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment