Instantly share code, notes, and snippets.

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

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