Skip to content

Commit 83f7700

Browse files
committed
1.0.0 beta compatibility
1 parent 1ce8d56 commit 83f7700

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/directives/view.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ import { activate } from '../pipeline'
44
export default function (Vue) {
55

66
let _ = Vue.util
7-
let componentDef = Vue.directive('_component')
7+
let componentDef =
8+
// 0.12
9+
Vue.directive('_component') ||
10+
// 1.0
11+
Vue.internalDirectives.component
812
// <router-view> extends the internal component directive
913
let viewDef = _.extend({}, componentDef)
1014

0 commit comments

Comments
 (0)