![]() This is a more advanced API that primarily targets library authors but can come in handy for developers as well, most of the time in a custom component like a NavLink or other. Router-link exposes a low level customization through a scoped slot (opens new window). When you are using the base option in HTML5 history mode, you don't need to include it in to prop's URLs.In HTML5 history mode, router-link will intercept the click event so that the browser doesn't try to reload the page.It works the same way in both HTML5 history mode and hash mode, so if you ever decide to switch mode, or when the router falls back to hash mode in IE9, nothing needs to be changed.is preferred over hard-coded for the following reasons: In addition, the link automatically gets an active CSS class when the target route is active. It renders as an tag with correct href by default, but can be configured with the tag prop. ![]() The target location is specified with the to prop. Is the component for enabling user navigation in a router-enabled app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |