Newer Version Available

This content describes an older version of this product. View Latest

Object Types

An attribute can have a type corresponding to an Object.

For example, you may want to create an attribute of type Object to pass a JavaScript array as an event parameter. In the component event, declare the event parameter using aura:attribute.

In JavaScript code, you can set the attribute of type Object.

Make your Apex class methods, getter and setter methods, available to your components by annotating them with @AuraEnabled.

Note