Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phill030/vue-boilerplate
This is a Boilerplate for Vite + Vue3 (TypeScript) + Vue-Router for alt:V
https://github.com/phill030/vue-boilerplate
Last synced: about 6 hours ago
JSON representation
This is a Boilerplate for Vite + Vue3 (TypeScript) + Vue-Router for alt:V
- Host: GitHub
- URL: https://github.com/phill030/vue-boilerplate
- Owner: Phill030
- Created: 2022-07-08T16:30:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-04T15:01:53.000Z (about 2 years ago)
- Last Synced: 2023-05-06T16:18:00.543Z (over 1 year ago)
- Language: Vue
- Homepage:
- Size: 27.3 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
alt:V Vue-Boilerplate## This boilerplate was made to simplify working with Vue and alt:V
### Packages:
- Vite
- Vue3
- Vue-Router
- TypeScript
- altv/types-webviews#### Does `alt` work?
✔ Yes### How to change the page?
To change the page you can either use
```ts
this.$router.push('/yourPath');
```
or use a router-link with a custom element
```vueSomething
```
### How to add a page to the router?
You can add a new page by creating a new file for eg. in `views/`. Then open `main.ts` and add a new object in `routes`.
Example:
```ts
import yourComponent from './views/yourComponent';
const routes = [
{
path: '/yourPath',
name: 'YourName',
component: yourComponent
},
]```
Made with ❤ by Phill030 aka. MrCopy&Paste™