1.0.0 • Published 2 years ago

crypted-vue-route v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Crypted Vue Route

This template should help get you started developing with Vue 3 in Vite.

Dependencies

  • Vue : This library is directly depended on Vue3

Installation

npm

npm i crypted-vue-route

yarn

yarn add crypted-vue-route

Basic Usage

<script setup>
    import {useCryptedRoute} from "crypted-vue-route";
    const {setRouteData, getRouteData, route, router, state: filterState} = useCryptedRoute();
    const onSubmit = async () => {
    await setRouteData(filterState.value);
};
</script>

<template>

    <main>
        <input type="search" v-model="filterState.username"/>
        {{ filterState.username }}
        <button @click.prevent="onSubmit">CLick!</button>

</main>
</template>

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build