docs/config/template/ngdoc/api/directive.template.html
{% include "lib/macros.html" -%} {% extends "api/api.template.html" %} {% block additional %} {% block usage %}
{% if doc.usage %} {$ doc.usage | marked $} {% else %} {% if doc.restrict.element %} - as element: {% code %} <{$ doc.name | dashCase $} {%- for param in doc.params %} {$ directiveParam(param.alias or param.name, param.type, '="', '"') $} {%- endfor %}> ... {$ doc.name | dashCase $}> {% endcode %} {% endif -%} {%- if doc.restrict.attribute -%} - as attribute: {% code %} <{$ doc.element $} {%- for param in doc.params %} {$ directiveParam(param.name, param.type, '="', '"') $} {%- endfor %}> ... {$ doc.element $}> {% endcode %} {% endif -%} {%- if doc.restrict.cssClass -%} - as CSS class: {% code %} {% set sep = joiner(' ') %} <{$ doc.element $} class=" {%- for param in doc.params -%} {$ sep() $}{$ directiveParam(param.name, param.type, ': ', ';') $} {%- endfor %}"> ... {$ doc.element $}> {% endcode %} {% endif -%} {%- endif %} {% endblock -%} {%- if doc.animations %}
{$ doc.animations | marked $} {$ 'module:ngAnimate.$animate' | link('Click here', doc) $} to learn more about the steps involved in the animation. {%- endif -%} {% include "lib/params.template.html" %} {% include "lib/events.template.html" %} {% endblock %}