Skip to content

Instantly share code, notes, and snippets.

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

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
You can’t perform that action at this time.