Newer Version Available

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

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 and can’t be referenced externally.

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.

Note

public Available within the same namespace. This is the default access value.
global Available in all namespaces.