【发布时间】:2015-10-07 22:57:50
【问题描述】:
我无法描述控制器方法。我该怎么做?
/**
* @ngdoc controller
* @name works.controller:worksCtrl
* @requires $http
* @requires $element
* @function
*
* @description
* Description for works controller. All methods will be writen later
*/
var worksCtrl = function ($http, $element) {
var ctrl = this;
//how it do there? this not work
/**
* @name initializeGrid
* @function
* @description
* Description for initializeGrid
*/
ctrl.initializeGrid = function (a) {
//...
}
ctrl.getTemplate = function (workIndex) {
//...
}
//...
};
我正在使用 ngdoc 来自动生成文档。但我不明白我做错了什么。
【问题讨论】:
标签: angularjs documentation documentation-generation jsdoc ngdoc