Skip to content

Commit 1a99090

Browse files
chore(doc-gen): don't show Members heading if no members
Closes angular#1248
1 parent b7eea4f commit 1a99090

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/dgeni-package/templates/class.template.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ <h1 class="class export">{$ doc.name $} <span class="type">class</span></h1>
66
<p class="module">exported from <a href="/{$ doc.moduleDoc.path $}">{$ doc.moduleDoc.id $}</a></p>
77
<p>{$ doc.description | marked $}</p>
88

9+
{%- if doc.constructorDoc or doc.members.length -%}
910
<h2>Members</h2>
1011
{%- if doc.constructorDoc %}
1112
<h3>{$ doc.constructorDoc.name $}{$ paramList(doc.constructorDoc.params) $}</h3>
@@ -15,5 +16,6 @@ <h3>{$ doc.constructorDoc.name $}{$ paramList(doc.constructorDoc.params) $}</h3>
1516
<h3>{$ member.name $}{$ paramList(member.params) $}</h3>
1617
<p>{$ member.description | marked $}</p>
1718
{% endfor %}
19+
{%- endif -%}
1820

1921
{% endblock %}

0 commit comments

Comments
 (0)