Last active
February 14, 2024 18:00
-
-
Save josepereza/1dcf75263c1f8f08827992778d3046a0 to your computer and use it in GitHub Desktop.
Integracion de materializecss en vue js.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install materialize-css | |
o | |
yarn add materialize-css@next | |
//Agregar en el archivo main.js | |
import Vue from 'vue'; | |
import VueRouter from "vue-router"; | |
import App from './App.vue'; | |
// materializeCss | |
import 'materialize-css/dist/css/materialize.css' | |
import 'materialize-css/dist/js/materialize.js' | |
//Agregar en los componentes vue | |
mounted() { | |
M.AutoInit(); | |
} | |
//Agregar en en los componentes vue en la seccion <style></style> | |
<style scoped> | |
@import url("https://fonts.googleapis.com/icon?family=Material+Icons"); | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hola, gusto en saludarles... una consulta...? esto solo funciona con el optionAPI no funciona con el setup? o mejor dicho como se configuraria con el setup en la etiqueta script?