Activity › Forums › Salesforce® Discussions › Explain the use of Aura: Namespace in the Salesforce code.
Tagged: Aura Namespace, Javascript, Lightning Component Framework, Salesforce AppExchange, Salesforce Code, Salesforce Components, Salesforce Developer, UI Framework
-
Explain the use of Aura: Namespace in the Salesforce code.
Posted by Anurag algoworks on September 24, 2018 at 1:14 PMWhat is the use of Aura: Namespace in the code ?
Parul replied 7 years, 8 months ago 4 Members · 3 Replies -
3 Replies
-
Hi,
Every component is part of a namespace, which is used to group related components together. If your organization has a namespace prefix set, use that namespace to access your components. Otherwise, use the default namespace to access your components.
Another component or application can reference a component by adding <myNamespace:myComponent> in its markup. For example, the helloWorld component is in the docsample namespace. Another component can reference it by adding <docsample:helloWorld /> in its markup.Lightning components that Salesforce provides are grouped into several namespaces, such as aura, ui, and force. Components from third-party managed packages have namespaces from the providing organizations.
In your organization, you can choose to set a namespace prefix. If you do, that namespace is used for all of your Lightning components. A namespace prefix is required if you plan to offer managed packages on the AppExchange.
If you haven’t set a namespace prefix for your organization, use the default namespace c when referencing components that you’ve created.
Namespaces in Code Samples
The code samples throughout this guide use the default c namespace. Replace c with your namespace if you’ve set a namespace prefix.Hope this helps.
- [adinserter block='9']
-
Hello,
Aura is a UI framework for developing dynamic web apps for mobile and desktop devices. Aura provides a scalable long-lived lifecycle to support building apps engineered for growth.
Aura supports partitioned multi-tier component development that bridges the client and server. It uses JavaScript on the client side and Java on the server side.
Thanks.
-
Aura supports partitioned multi-tier component development that bridges the client and server. It uses JavaScript on the client side and Java on the server side.
The Aura framework. Note that the open source Aura framework has features and components that are not currently available in the Lightning Component framework. We are working to surface more of these features and components for Salesforce developers.
Thanks
Thanks.
Log In to reply.