【问题标题】:NGDoc No template found for methodNGDoc 找不到方法的模板
【发布时间】:2015-08-27 19:54:56
【问题描述】:

标题几乎总结了它,如果我这样评论我的文件:

    /**
     * @ngdoc method
     * @name processData.getProcessCategories
     * @module bpui
     *
     * @description Gets the processes from the API
     * @returns {HttpPromise} 
     */

我收到以下错误:

Error: Failed to render - doc "method:processData.getProcessCategories" (method)  - from file "../app/services/process.data.js" - starting at line 33,
 ending at line 40

Original Error:

Error: No template found./nThe following template patterns were tried:
  ""
  "api/method:processData.getProcessCategories.method.template.html"
  "api/method:processData.getProcessCategories.template.html"
  "api/method.template.html"
  "method:processData.getProcessCategories.method.template.html"
  "method:processData.getProcessCategories.template.html"
  "method.template.html"
  ""

查看存储模板的文件夹时,我没有在其中看到它。我刚刚安装了 dgeni 和 degeni-packages。如有必要,我可以粘贴我的 conf 文件。我没有通过 grunt/gulp 运行,而是通过命令行运行它。

【问题讨论】:

    标签: angularjs documentation ngdoc


    【解决方案1】:

    所以问题是@name 应该是这样的:processData#getProcessCategories

    文档没有直接指定。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-08
      • 2018-01-02
      • 2012-07-10
      • 2015-03-14
      • 2020-06-13
      • 2021-05-28
      相关资源
      最近更新 更多