Using Your Organization’s Namespace

If your organization has set a namespace prefix, use that namespace to reference Lightning components, events, custom objects and fields, and other items in your Lightning markup.
The following items use your organization’s namespace when your organization has a namespace prefix set.
  • References to components that you’ve created
  • References to events that you’ve defined
  • References to custom objects
  • References to custom fields on standard and custom objects
  • References to Apex controllers
  • References to static resources
Note

Note

Support for the c namespace in organizations that have set a namespace prefix is incomplete. The following items can use the c namespace if you prefer to use the shortcut, but it’s not currently a recommended practice.

  • References to components that you’ve created when used in Lightning markup, but not in expressions or JavaScript
  • References to events that you’ve defined when used in Lightning markup, but not in expressions or JavaScript
  • References to custom objects when used in component and event type and default system attributes, but not in expressions or JavaScript

See Namespace Usage Examples and Reference for examples of the preceding items.