Skip to content

Instantly share code, notes, and snippets.

@KenoLeon
Last active June 16, 2020 02:26
Show Gist options
  • Select an option

  • Save KenoLeon/916e47fce2497453916ff4291dc6c101 to your computer and use it in GitHub Desktop.

Select an option

Save KenoLeon/916e47fce2497453916ff4291dc6c101 to your computer and use it in GitHub Desktop.
Simple APP.vue starter from VUE UI CLI
<!-- FILE: App.vue -->
<!-- NOTE: Install and Import bootstrap on main.js -->
<template>
<div id="app">
<bootsAlert/>
</div>
</template>
<script>
import bootsAlert from './components/bootsAlert.vue'
export default {
name: 'App',
components: {
bootsAlert
}
}
</script>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
<!-- FILE: components/bootsAlert.vue -->
<template>
<div>
<div class="alert alert-danger" role="alert" style="margin:auto;width:600px;">
Such Alert Very Danger !
</div>
</div>
</template>
<script>
export default {
name: 'bootsAlert'
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment