The Vue docs has similar examples to auto-focus an element when mounted using Template Ref & a Custom Directive.
Apart from the fact that custom directives can be registered globally, is there any other real difference that determines when we should prefer one over the other? Thanks in advance.