angular-docs-cn/aio/tools/transforms/templates/api/function.template.html

24 lines
921 B
HTML
Raw Normal View History

{% import "lib/paramList.html" as params -%}
{% extends 'export-base.template.html' -%}
{% block overview %}
2017-07-12 18:06:02 -04:00
<code-example language="ts" hideCopy="true" class="no-box api-heading">
function {$ doc.name $}{$ doc.typeParameters | escape $}{$ params.paramList(doc.parameters) $}
2017-07-12 18:06:02 -04:00
{%- if doc.type %}: {$ doc.type | escape $}{% endif %};
</code-example>
{% endblock %}
{% block details %}
2017-07-12 18:06:02 -04:00
{% include "includes/description.html" %}
{% if doc.overloads.length %}
2017-06-29 17:23:27 -04:00
<h2>Overloads</h2>{% for overload in doc.overloads %}
2017-07-12 18:06:02 -04:00
<code-example language="ts" hideCopy="true" class="no-box api-heading">
function {$ overload.name $}{$ doc.typeParameters | escape $}{$ params.paramList(overload.parameters) $}
2017-06-29 17:23:27 -04:00
{%- if overload.type %}: {$ overload.type | escape $}{% endif %};
</code-example>
<section class="description">
{$ overload.description | trimBlankLines | marked $}
</section>
{% endfor %}
{% endif %}
{% endblock %}