Skip to content

Commit

Permalink
Added missing LiveProp
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan authored Sep 27, 2023
1 parent a25f634 commit 9e6b353
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,7 @@ You can also use a DTO (i.e. data transfer object / any simple class) with LiveP

class ComponentWithAddressDto
{
#[LiveProp]
public AddressDto $addressDto;
}

Expand All @@ -643,6 +644,7 @@ To work with a collection of DTOs, specify the collection type inside PHPDoc::
/**
* @var AddressDto[]
*/
#[LiveProp]
public array $addressDtoCollection;
}

Expand Down

0 comments on commit 9e6b353

Please sign in to comment.