@vue-composable/router
v1.0.0-dev.11
Published
@vue-composable/router
Downloads
11
Maintainers
Readme
@vue-composable/router
Introduction
Use router library with the composition-api
Installing
# install with yarn
yarn add @vue/composition-api @vue-composable/router
# install with npm
npm install @vue/composition-api @vue-composable/router
Documentation
// main.js
import VueComposableRouter from "@vue-composable/router";
// this is required
Vue.use(vueComposableRouter);
// component.vue
import { getVueRouter } from "@vue-composable/router";
export default {
setup() {
getVueRouter().push("/");
}
};
Contributing
- Fork it!
- Create your feature branch:
git checkout -b feat/new-composable
- Commit your changes:
git commit -am 'feat(composable): add a new composable'
- Push to the branch:
git push origin feat/new-composable
- Submit a pull request