How to place controllers in modules using ngdoc

I use the grunt module grunt-ngdocs and this is the code that creates the documentation.

ngdocs: {
            all: app_files,
            scripts: ['angular.js']
        }

I have a module called a starter and two controllers: controllerA, controllerB

/**
  * 
  * @ngdoc object
  * @name controllerA

  * @description  ...
  */

/**
  * 
  * @ngdoc object
  * @name controllerB

  * @description  ...
  */

When starting the documentation generator, these controllers are displayed as modules.

How to write it in the ngdoc markup that both of them are connected to the module starter?

contollerA and controllerB are in different files.

+4
source share
1 answer

Usually you write ngdoc this way for controllers:

@name moduleName.controller: controller_name

In your case, you can write:

/**
 * @ngdoc controller
 * @name starter.controller:controllerA
 *
 * ....
*/
+8
source

All Articles