Back to Angular Js

Methods.Template

docs/config/templates/ngdoc/lib/methods.template.html

1.8.3732 B
Original Source

{% import "lib/macros.html" as lib -%} {% import "lib/deprecated.html" as x -%} {%- if doc.methods %}

Methods

{%- for method in doc.methods %} -

{$ lib.functionSyntax(method) $}

{$ method.description | marked $} {$ x.deprecatedBlock(method) $} {% if method.params %}

Parameters

{$ lib.paramTable(method.params) $} {% endif %} {% if method.this %}

Method's this

{$ method.this | marked $} {% endif %} {% if method.returns %}

Returns

{$ lib.typeInfo(method.returns) $} {% endif %} {%- if method.examples %}

{$ "Examples" if method.examples | length > 1 else "Example" $}

{%- for example in method.examples -%} {$ example | marked $} {%- endfor -%} {% endif -%} {% endfor -%} {%- endif -%}