Skip to content
Discussion options

You must be logged in to vote

You should add the directive before the app is mounted, so like this

app.directive('autofocus', {
  // ...
})
app.mount(el)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rico
Comment options

@Mllexx
Comment options

Answer selected by rico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants