Skip to content

Instantly share code, notes, and snippets.

@SurbhiKatariya
Created April 4, 2020 15:57
Show Gist options
  • Save SurbhiKatariya/6ec45d96c017862b5f8fe38d13690f01 to your computer and use it in GitHub Desktop.
Save SurbhiKatariya/6ec45d96c017862b5f8fe38d13690f01 to your computer and use it in GitHub Desktop.
Template code
<template lang="pug">
.container
div(v-if="isLoading") Loading......
.user-table(v-if="!isLoading")
.table-row.table-header
div User Id
div User Name
div User Email
.table-row.table-data(:key="index" v-for="(user, index) in userList")
div {{user.id}}
div {{user.name}}
div {{user.email}}
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment