[SalesForce] Lightning component with namespace

When the org has no namespace associated with we write Lightning codes like this –

<aura:component extends="c:myComponent">
<aura:component implements="c:myInterface">

where as, when namespace is there the c got replaced with namespace –

<aura:component extends="yournamespace:myComponent">
<aura:component implements="yournamespace:myInterface">

…And many more changes. And I want to do such changes to minimum, so that the developers need not to give time on changing the "c" to "yournamespace" on each and every file. The way we use short form in tag for namespaces in xml, e.g.

<root xmlns:h="http://www.w3.org/TR/html4/">
   <h:table>
       <h:tr>
......

can we use anything similar in lightning code? This will help integrating similar code/code-snippets in different namespaces and increase portability.

Best Answer

Certainly not possible now. You're actually talking about supporting namespaces, which we say we do, but we don't really. We support prefixes.

Mapping one prefix to another via an alias isn't supported, and isn't on our backlog.

Related Topic