Skip to content

Commit 950726d

Browse files
committed
minor #371 Add LiveProp because I got an error otherwise (michaelKaefer, kbond)
This PR was merged into the 2.x branch. Discussion ---------- Add LiveProp because I got an error otherwise | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | - | License | MIT Commits ------- 1a39b51 Update src/LiveComponent/src/Resources/doc/index.rst ddd1f0f Add LiveProp because I got an error otherwise
2 parents 990fb8e + 1a39b51 commit 950726d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/LiveComponent/src/Resources/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ A real-time product search component might look like this::
1616

1717
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
1818
use Symfony\UX\LiveComponent\DefaultActionTrait;
19+
use Symfony\UX\LiveComponent\Attribute\LiveProp;
1920

2021
#[AsLiveComponent('product_search')]
2122
class ProductSearchComponent
2223
{
2324
use DefaultActionTrait;
2425

26+
#[LiveProp(writable: true)]
2527
public string $query = '';
2628

2729
private ProductRepository $productRepository;

0 commit comments

Comments
 (0)