Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

2.0.0

Compare
Choose a tag to compare
@pascalbaljet pascalbaljet released this 20 Dec 21:07
· 62 commits to main since this release

Splade Core v2.0

Splade Core v2 focuses on improving data passing from Blade to Vue. In addition to passing Blade props as a Vue ref, you may now pass them as a Vue prop. Also, it translates PHP types to their JavaScript equivalents in the Vue props definition.

Upgrading from 1.x to 2.x

The only breaking change is that the Vue attribute has been split into Vue, VueProp, and VueRef. The Vue attribute can still be used for methods. You may now use either VueProp or VueRef to pass PHP properties to Vue. VueProp is a one-way binding, while VueRef is a two-way binding. Previously, two-way binding was the only option.