Skip to content

Instantly share code, notes, and snippets.

@kzelda
Created November 8, 2020 16:26
Show Gist options
  • Save kzelda/297696777ef66d75a6e5ef152669d35b to your computer and use it in GitHub Desktop.
Save kzelda/297696777ef66d75a6e5ef152669d35b to your computer and use it in GitHub Desktop.
Quasar Framework v1
<div id="q-app">
<div class="q-ma-md">
Fork and make your own!
Do NOT use self-closing tags here on Codepen.
</div>
<div class="q-ma-md">
<q-btn label="Notify" color="primary" @click="notify"></q-btn>
</div>
<div class="q-ma-md">
Running Quasar v{{ version }}
</div>
</div>
new Vue({
el: '#q-app',
data: function () {
return {
version: Quasar.version
}
},
methods: {
notify: function () {
this.$q.notify('Running on Quasar v' + this.$q.version)
}
}
})
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/quasar/dist/quasar.umd.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/@quasar/extras/material-icons/material-icons.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/quasar/dist/quasar.min.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment