force-di icon indicating copy to clipboard operation
force-di copied to clipboard

Automatically prefix Lightning component bindings with `c:` if no namespace provided

Open douglascayers opened this issue 7 years ago • 0 comments

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.

douglascayers avatar Aug 29 '18 15:08 douglascayers