You need to sign in to do that
Don't have an account?
Jugbeer Bhola
Define Lightning Web Component Attribute as Structure of Class
In a Lightning Aura Component an attribute can be defined in the .cmp as an object from the Apex component class.
Example: <aura:attribute name="productObject" type="ProducController.ProductWrapper[]"/>
How can that same thing be accomplished in a Lightning Web Component?
Example: <aura:attribute name="productObject" type="ProducController.ProductWrapper[]"/>
How can that same thing be accomplished in a Lightning Web Component?
There is a great illustration on the medium link that is present in migrating to lwc documentation it clearly shows the equivalence of lightning components parts to lwc parts, Link to the image (https://medium.com/@rajasneha20/lightning-web-components-migration-cheatsheet-c8ef6352ee04)
>> https://www.sfdcpoint.com/salesforce/wrapper-class-in-lwc/
In the above link there are implementations of how to use wrapper classes in lwc.
.........................
@wire(ProduceWrapper) ProductAttri;
.........................
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.