Activity › Forums › Salesforce® Discussions › Do we need a namespace to develop Lightning Components?
-
Do we need a namespace to develop Lightning Components?
Posted by Nikita on October 4, 2019 at 1:41 PMDo we need a namespace to develop Lightning Components?
Naresh kumar replied 6 years, 7 months ago 4 Members · 3 Replies -
3 Replies
-
Component Namespace
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.
- [adinserter block='9']
-
Hello,
You create Lightning components in development organisation only. Reason for this is, it need namespace and only developer edition can have namespace.
Lightning components can only be shipped as managed package only. So you can deploy them in any organisation which support apex.
-
In order to deploy into other organisation We need to namespace is must.The default name space is c .
we can also create namespace in packages
Log In to reply.