$componentLoaderProvider

This lets you configure conventions for what controllers are named and where to load templates from.

The default behavior is to dasherize and serve from ./components. A component called myWidget uses a controller named MyWidgetController and a template loaded from ./components/my-widget/my-widget.html.

A component is:

This service makes it easy to group all of them into a single concept.

$componentLoaderProvider#setCtrlNameMapping

takes a function for mapping component names to component controller names

$componentLoaderProvider#setCtrlNameMapping

takes a function for mapping component controller names to component names

$componentLoaderProvider#setTemplateMapping

takes a function for mapping component names to component template URLs