angular-cn/tools/api-builder/angular.io-package/templates/directive.template.html

40 lines
1.1 KiB
HTML
Raw Normal View History

{% include "lib/githubLinks.html" -%}
{% include "lib/paramList.html" -%}
{% extends 'class.template.html' -%}
{% block additional %}
.l-main-section
h2 Selectors
.l-sub-section
{% for selector in doc.directiveOptions.selector.split(',') %}
h3.selector
code {$ selector $}
{% endfor %}
{% if doc.inputs %}
.l-main-section
h2 Inputs
.l-sub-section{% for binding, property in doc.inputs %}
h3.input
code {$ property.bindingName | dashCase $}
|  bound to 
code {$ property.memberDoc.classDoc.name $}.{$ property.propertyName $}
:markdown
{$ property.memberDoc.description | indentForMarkdown(2) | trimBlankLines $}
{% endfor %}
{% endif %}
{% if doc.outputs %}
.l-main-section
h2 Outputs
.l-sub-section{% for binding, property in doc.outputs %}
h3.output
code {$ property.bindingName | dashCase $}
|  bound to 
code {$ property.memberDoc.classDoc.name $}.{$ property.propertyName $}
:markdown
{$ event.memberDoc.description | indentForMarkdown(2) | trimBlankLines $}
{% endfor %}
{% endif %}
{% endblock %}