Activity › Forums › Salesforce® Discussions › What is the default namespace of Salesforce lightning component?
Tagged: Apex Controllers, Custom Fields, Custom Object, Namespace, Salesforce Lightning Component, Standard Objects
-
What is the default namespace of Salesforce lightning component?
Posted by Prachi on August 20, 2018 at 1:32 PMWhat is the default namespace of lightning component?
Avnish Yadav replied 7 years, 7 months ago 4 Members · 3 Replies -
3 Replies
-
Hello Prachi,
If your organization hasn’t set a namespace prefix, use the default namespace c when referencing Lightning components that you’ve created.
The following items must use the c namespace when your organization doesn’t have a namespace prefix set.- References to components that you’ve created
- References to events that you’ve defined
The following items use an implicit namespace for your organization and don’t require you to specify a namespace.
- References to custom objects
- References to custom fields on standard and custom objects
- References to Apex controllers
- [adinserter block='9']
-
The following items use an implicit namespace for your organization and don’t require you to specify a namespace.
References to custom objects
References to custom fields on standard and custom objects
References to Apex controllers -
Hello,
If your organization hasn’t set a namespace prefix, use the default namespace c when referencing Lightning components that you’ve created.
Thanks.
Log In to reply.