/
githubmirror
/
angular.js
Обзор
Документация
Войти
/
githubmirror
/
angular.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/config/templates/ngdoc/lib/methods.template.html
39 строк
989 B
George Kalpakas
chore(docs): fix rendering of methods' `this` type
12 ноя 2018, 14:15
12 ноя 2018, 14:15
7240f31
Код
Авторство
О чём код?
{% import "lib/macros.html" as lib -%} {% import "lib/deprecated.html" as x -%} {%- if doc.methods %} <h2 id="{$ doc.name $}-methods">Methods</h2> <ul class="methods"> {%- for method in doc.methods %} <li> <h3 id="{$ method.name $}">{$ lib.functionSyntax(method) $}</h3> <div>{$ method.description | marked $}</div> {$ x.deprecatedBlock(method) $} {% if method.params %} <h4>Parameters</h4> {$ lib.paramTable(method.params) $} {% endif %} {% if method.this %} <h4>Method's `this`</h4> {$ method.this | marked $} {% endif %} {% if method.returns %} <h4>Returns</h4> {$ lib.typeInfo(method.returns) $} {% endif %} {%- if method.examples %} <h4 id="{$ doc.name $}.{$ method.name $}-examples">{$ "Examples" if method.examples | length > 1 else "Example" $}</h4> {%- for example in method.examples -%} {$ example | marked $} {%- endfor -%} {% endif -%} </li> {% endfor -%} </ul> {%- endif -%}