Created
April 4, 2020 15:57
-
-
Save SurbhiKatariya/6ec45d96c017862b5f8fe38d13690f01 to your computer and use it in GitHub Desktop.
Template code
This file contains 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
<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