diff --git a/src/components/link.js b/src/components/link.js index 48d034e47..10d3d118d 100644 --- a/src/components/link.js +++ b/src/components/link.js @@ -8,7 +8,7 @@ const toTypes: Array = [String, Object] const eventTypes: Array = [String, Array] export default { - name: 'router-link', + name: 'RouterLink', props: { to: { type: toTypes, diff --git a/src/components/view.js b/src/components/view.js index 0534c5e55..f0497cd1b 100644 --- a/src/components/view.js +++ b/src/components/view.js @@ -1,7 +1,7 @@ import { warn } from '../util/warn' export default { - name: 'router-view', + name: 'RouterView', functional: true, props: { name: { diff --git a/src/install.js b/src/install.js index 8d900625a..ee8506aa8 100644 --- a/src/install.js +++ b/src/install.js @@ -43,8 +43,8 @@ export function install (Vue) { get () { return this._routerRoot._route } }) - Vue.component('router-view', View) - Vue.component('router-link', Link) + Vue.component('RouterView', View) + Vue.component('RouterLink', Link) const strats = Vue.config.optionMergeStrategies // use the same hook merging strategy for route hooks