Create a gist now

Instantly share code, notes, and snippets.

@eirikb /App.vue
Last active Mar 26, 2017

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