You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case where I want to implement a custom <nav-link> component that builds on top of <router-link>. While this is perfectly possible, it requires me to replace all my <router-link> references with <nav-link> (and I have about 200 of them). Therefore it would be useful to be able to explicitly reference Vue Router's <router-link> in the <nav-link> component so that I can globally register my component as
What problem does this feature solve?
I have a use case where I want to implement a custom
<nav-link>
component that builds on top of<router-link>
. While this is perfectly possible, it requires me to replace all my<router-link>
references with<nav-link>
(and I have about 200 of them). Therefore it would be useful to be able to explicitly reference Vue Router's<router-link>
in the<nav-link>
component so that I can globally register my component asWhat does the proposed API look like?
I propose to explicitly export the
<router-link>
component (and perhaps<router-view>
as well) so it can be imported like this:I will file a PR for this.
The text was updated successfully, but these errors were encountered: