Created
August 16, 2019 22:03
-
-
Save parzibyte/344529eb3907ba965f3e4f5c8476f74c to your computer and use it in GitHub Desktop.
This file contains 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
// Registrar el filtro | |
Vue.filter("mayusculas", v => (v || "").toString().toUpperCase()); | |
// Dentro de la instancia no es necesario declararlo | |
// pues ya está registrado globalmente | |
new Vue({ | |
el: "#app", | |
data: () => ({ | |
nombre: "Luis Cabrera Benito" | |
}), | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment