Created
September 8, 2017 02:10
-
-
Save JuanVqz/af51ea88d817cdc653f7a1261dd212fc to your computer and use it in GitHub Desktop.
Icon that rotates while loading the page
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
<!-- Call from template --> | |
<spinner :loading="loading"></spinner> | |
<!-- Component --> | |
<template> | |
<div id="spinner"> | |
<div class="form-group text-center" v-if="loading"> | |
<i class="fa fa-2x fa-cog fa-spin"></i> | |
</div> | |
</div> | |
</template> | |
<script> | |
export default { | |
props: ['loading'] | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment