Skip to content

Commit

Permalink
Update readme for v0.12 and bump
Browse files Browse the repository at this point in the history
  • Loading branch information
ayamflow committed Jun 26, 2015
1 parent 0ca574e commit decfaca
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 22 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
vue-route
=======

Routing directive for Vue.js **(v0.11)**, inspired by ng-view.
Routing directive for Vue.js, inspired by ng-view.
Based on `v-component` thus benefits from `v-transition`, `keep-alive`, `wait-for`, `transition-mode`.

Versions 1.5.0+ are made for **Vue.js v0.12+.**
Use older versions for Vue.js v0.11.

Allows you to declare your routes on the `$root` Vue object:

```js
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-route",
"version": "1.4.4",
"version": "1.5.0",
"description": "Routing directive for Vue.js, inspired by ng-view.",
"main": "src/index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
General purpose tests
*/

var test = require('tape'),
var test = require('prova'),
Vue = require('vue'),
page = require('page'),
route = require('../src/index.js');
Expand Down Expand Up @@ -173,6 +173,7 @@ test('data', function(assert) {

Vue.navigate('/with-data');
Vue.nextTick(function() {
console.log(root._children[0].$data);
assert.equal(root._children[0].bar, 'baz', 'Should have a data');
});
});
8 changes: 0 additions & 8 deletions test/index.html

This file was deleted.

9 changes: 0 additions & 9 deletions test/index.js

This file was deleted.

5 changes: 3 additions & 2 deletions test/keep-alive-data.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var test = require('tape'),
var test = require('prova'),
Vue = require('vue'),
page = require('page'),
route = require('../src/index.js');
Expand Down Expand Up @@ -44,7 +44,7 @@ Vue.component('page-2', {
}
});

var root = new Vue({
/*var root = new Vue({
el: 'body',
routes: routes
});
Expand All @@ -66,3 +66,4 @@ test('data', function(assert) {
}, 800);
}, 800);
});
*/

0 comments on commit decfaca

Please sign in to comment.