Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add onComplete & onAbort to router-link #3027
What problem does this feature solve?
In 2.2.0 Vue added
What does the proposed API look like?
Personally I have no preference over how this should look, I'm not experienced enough with vue router to say what is the most idiomatic, however I would expect to be something like the following.
<router-link to="…" on-complete="callback" on-abort="callback"></router-link> <!-- or --> <router-link to="…" complete="callback" abort="callback"></router-link>