Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 16, 2019 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/344529eb3907ba965f3e4f5c8476f74c to your computer and use it in GitHub Desktop.
Save parzibyte/344529eb3907ba965f3e4f5c8476f74c to your computer and use it in GitHub Desktop.
// 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