apex-enterprise-patterns / force-di

Generic DI library with support for Apex, Triggers, Visualforce and Lightning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

douglascayers opened this issue · 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.