Skip to content

Commit

Permalink
1.0.0 beta compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 25, 2015
1 parent 1ce8d56 commit 83f7700
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/directives/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { activate } from '../pipeline'
export default function (Vue) {

let _ = Vue.util
let componentDef = Vue.directive('_component')
let componentDef =
// 0.12
Vue.directive('_component') ||
// 1.0
Vue.internalDirectives.component
// <router-view> extends the internal component directive
let viewDef = _.extend({}, componentDef)

Expand Down

0 comments on commit 83f7700

Please sign in to comment.