diff --git a/docs/content/error/$controller/ctrlfmt.ngdoc b/docs/content/error/$controller/ctrlfmt.ngdoc new file mode 100644 index 000000000000..019598f7951e --- /dev/null +++ b/docs/content/error/$controller/ctrlfmt.ngdoc @@ -0,0 +1,46 @@ +@ngdoc error +@name $controller:ctrlfmt +@fullName Badly formed controller string +@description + +This error occurs when {@link ng.$controller $controller} service is called +with a string that does not match the supported controller string formats. + +Supported formats: + +1. `__name__` +2. `__name__ as __identifier__` + +N'either `__name__` or `__identifier__` may contain spaces. + +Example of incorrect usage that leads to this error: +```html + +