Skip to content

Instantly share code, notes, and snippets.

👕
Where's Wally?

Lucas Gomes heregoesnoth

👕
Where's Wally?
Block or report user

Report or block heregoesnoth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@heregoesnoth
heregoesnoth / directive.js
Created Jul 26, 2019
VueJS directive example
View directive.js
// Registra a diretiva personalizada global chamada `v-focus`
Vue.directive('focus', {
// Quando o elemento vinculado é inserido no DOM...
inserted: function (el) {
// Coloque o foco no elemento
el.focus()
}
})
You can’t perform that action at this time.