function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Philip Jones 20Philip Jones 20 

Where do you need to declare the namesapce in Aura?

Creating a managed packaged without hardcoding the namespace and need help identifying where and when to apply dynamic namespace?  Basically where does the namespace get added after a package is created.

Examples:
Controller.js
evalRecord['Summary_Type__c']
evalRecord.Summary_Type__c

Would the namespace be added to those lines of code when packaged?

 
Best Answer chosen by Philip Jones 20
Ajay K DubediAjay K Dubedi
Hi Philip,

I have understood your query. You want to learn where to use Aura Namespace.
Please refer to below link-

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/namespaces_intro.htm

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/namespace_using_reference.htm

https://salesforce.stackexchange.com/questions/150418/namespace-in-lightning-component


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com  (http://www.ajaydubedi.com )