/**
* @jest-environment jsdom
*/
-import { Link as RouterLink } from '../src/components/Link'
+import { RouterLink } from '../src/components/Link'
import {
START_LOCATION_NORMALIZED,
RouteQueryAndHash,
/**
* @jest-environment jsdom
*/
-import { View as RouterView } from '../src/components/View'
+import { RouterView } from '../src/components/View'
import { components, RouteLocationNormalizedLoose } from './utils'
import { START_LOCATION_NORMALIZED } from '../src/types'
import { markRaw } from 'vue'
}
}
-export const Link = (defineComponent({
+export const RouterLink = (defineComponent({
name: 'RouterLink',
props: {
to: {
routeLocationKey,
} from '../utils/injectionSymbols'
-export const View = (defineComponent({
+export const RouterView = (defineComponent({
name: 'RouterView',
props: {
name: {
export { NavigationFailureType, NavigationFailure } from './errors'
export { onBeforeRouteLeave } from './navigationGuards'
-export { Link, useLink } from './components/Link'
-export { View } from './components/View'
+export { RouterLink, useLink } from './components/Link'
+export { RouterView } from './components/View'
export { createWebHistory, createMemoryHistory, createWebHashHistory }
import { App, ComputedRef, reactive } from 'vue'
import { Router } from './router'
-import { Link } from './components/Link'
-import { View } from './components/View'
+import { RouterLink } from './components/Link'
+import { RouterView } from './components/View'
import { isBrowser } from './utils'
import {
START_LOCATION_NORMALIZED,
}
export function applyRouterPlugin(app: App, router: Router) {
- app.component('RouterLink', Link)
- app.component('RouterView', View)
+ app.component('RouterLink', RouterLink)
+ app.component('RouterView', RouterView)
// TODO: add tests
app.config.globalProperties.$router = router