diff --git a/docs/config/templates/ngdoc/api/api.template.html b/docs/config/templates/ngdoc/api/api.template.html index 97119640411e..3d93e863af17 100644 --- a/docs/config/templates/ngdoc/api/api.template.html +++ b/docs/config/templates/ngdoc/api/api.template.html @@ -51,7 +51,7 @@

Dependencies

{% block examples %} {%- if doc.examples %} -

Example

+

Examples

{%- for example in doc.examples -%} {$ example | marked $} {%- endfor -%} diff --git a/docs/config/templates/ngdoc/lib/methods.template.html b/docs/config/templates/ngdoc/lib/methods.template.html index 49977b3eca6e..47aff128bd91 100644 --- a/docs/config/templates/ngdoc/lib/methods.template.html +++ b/docs/config/templates/ngdoc/lib/methods.template.html @@ -26,6 +26,13 @@

Returns

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

Examples

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