vue-director (WIP)
** CAUTION: This is a work in progress, please report bugs in github issues.
VueDirector extends Vue to add a new option called route, this route option takes
director
style routes for each component:
Usage
On each component, just define your route as one of your options:
The route is an object that uses the director
convention { route: fn }
** VueDirector depends on the convention currentView
to be specified as the
component v-view
navigation variable.
var VueDirector = ;var app =el: '#app'data:currentView: 'home'components:'home':route:{console;}template: '<h1>Home</h1>''about':route:{console;}template: '<h1>About</h1>';