Material-components-web: How to use MDC with VueJs?

Created on 12 Nov 2017  路  3Comments  路  Source: material-components/material-components-web

I have some problem with understanding how exactly use MDC in Vue component.
For example, I have result file app.js where I connect MDC

window.mdc = require('material-components-web')

and then I register the component

Vue.component(
  'social-auth',
  require('./blocks/social-auth/social-auth.vue')
);

So, for example, in this component I want to use mdc-menus, what i should do next?

Most helpful comment

Consider using this adapter https://github.com/stasson/vue-mdc-adapter

All 3 comments

Consider using this adapter https://github.com/stasson/vue-mdc-adapter

@MishUshakov Thank you so much. That's what I need.

i don鈥檛 want to use any framework integration or wrapper!
How to use material-components-web?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trimox picture trimox  路  4Comments

AbuMareBear picture AbuMareBear  路  3Comments

broros picture broros  路  3Comments

m-alzam picture m-alzam  路  3Comments

traviskaufman picture traviskaufman  路  3Comments