Skip to content

Howto pass generic type to ref<ComponentExposed<typeof SomeComponent>>() like <!-- @vue-generic {MyType}--> in template? #5502

Answered by KazariEX
FragsterAt asked this question in Q&A
Discussion options

You must be logged in to vote

If you use useTemplateRef you will automatically get the correct exposed type without having to explicitly fill in the type parameter.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FragsterAt
Comment options

Answer selected by FragsterAt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants