force-di
force-di copied to clipboard
Automatically prefix Lightning component bindings with `c:` if no namespace provided
Human errors and typos are inevitable. I often forget to prefix my Lightning component names with c: prefix.
This request is for the binding resolver to automatically prefix with c: if no namespace is provided in the CMDT or programmatic binding.
No namespace means that the binding name does not include a colon :.
For a given Lightning component whose developer name is c:MyComponent then both these binding name variants should work:
-
c:MyComponent -
MyComponent
For Lightning components that belong to a specific namespace (not c), then the full namespace and colon are required.