Download the PHP package brunoabpinto/vector without Composer
On this page you can find all versions of the php package brunoabpinto/vector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download brunoabpinto/vector
More information about brunoabpinto/vector
Files in brunoabpinto/vector
Download brunoabpinto/vector
More information about brunoabpinto/vector
Files in brunoabpinto/vector
Vendor brunoabpinto
Package vector
Short Description Vue reactivity in Blade templates using a familiar script setup syntax
License MIT
Package vector
Short Description Vue reactivity in Blade templates using a familiar script setup syntax
License MIT
Please rate this library. Is it a good library?
Informations about the package vector
Vector
Vue reactivity in Blade templates using a simple <script setup> tag.
Installation
Frontend Setup
Install Vue:
Add Vector to your Vite entry points in vite.config.js:
Add @vectorJs before your closing </body> tag in your layout:
Usage
Use the <script setup> tag to add Vue reactivity to your Blade templates:
How it works
- The
<script setup>tag is transformed at compile time - It extracts variable declarations and auto-returns them to the template
- Vue mounts on the next sibling element after the script—anything outside that element is not parsed by Vector
- All Vue Composition API functions are available:
ref,reactive,computed,watch,onMounted, etc.
Escaping Blade Syntax
Since Blade also uses {{ }}, prefix Vue's mustache syntax with @ to prevent Blade from processing it:
Or use Vue directives like v-text:
License
MIT
All versions of vector with dependencies
PHP Build Version
Package Version
The package brunoabpinto/vector contains the following files
Loading the files please wait ...