lundi 29 octobre 2018

Ember JS: How to import Material Components Web JS

I'm trying to use Material Components Web(MDC-Web) with an EmberJS application. I've installed material-componants-web with Yarn.

I have the sass/CSS working but can't figure out how to include/import the JS. Could someone show me how it would import that into my component js file and/or my component template file.

I get an no file error when I do an app.import('node_modules/material-components-web/dist/material-components-web.js').

Thanks for any help!




Aucun commentaire:

Enregistrer un commentaire