Skip to content

Instantly share code, notes, and snippets.

@eirikb eirikb/App.vue
Last active Jan 10, 2019

Embed
What would you like to do?
Add MDL to Vue
<style lang="scss">
@import "~material-design-lite/material.css";
</style>
import 'material-design-lite'
Vue.directive('mdl', {
inserted: el => componentHandler.upgradeElement(el)
})
<template>
<button class="mdl-button mdl-js-button mdl-js-ripple-effect" v-mdl>
Hello, world!
</button>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.