I am new to code documentation and currently attempting to document my Angular application using grunt-ngdocs.
After cloning a functional example from: https://github.com/m7r/grunt-ngdocs-example, I noticed that the provided example did not include documentation for a controller. Thus, I decided to add my own documented controller with the following code:
/**
* @ngdoc controller
* @name rfx.controller:testCtrl
* @description
* Description of controller.
*/
.controller('testCtrl', function() {
});
However, when attempting to generate documentation by running grunt from the command line, an error message is displayed:
Warning: Don't know how to format @ngdoc: controller Use --force to continue.
I have consulted this guide but I cannot seem to resolve why I keep encountering errors while trying to document a controller. Any assistance would be greatly appreciated! Thanks!