Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Attribute Access Control

The access attribute on the aura:attribute tag controls whether the attribute can be used outside of the attribute’s namespace.

Possible values are listed below.

Access Description
private Available within the component, app, interface, or event, or method and can’t be referenced outside the resource.

Accessing a private attribute returns undefined unless you reference it from the component in which it’s declared. You can’t access a private attribute from a sub-component that extends the component containing the private attribute.

public Available within your org only. This is the default access value.
global Available in all orgs.