diff --git a/tools/dgeni/processors/categorizer.ts b/tools/dgeni/processors/categorizer.ts index adec260b52a6..1a598800c959 100644 --- a/tools/dgeni/processors/categorizer.ts +++ b/tools/dgeni/processors/categorizer.ts @@ -108,6 +108,14 @@ export class Categorizer implements Processor { classDoc.directiveMetadata = getDirectiveMetadata(classDoc); classDoc.inheritedDocs = getInheritedDocsOfClass(classDoc, this._exportSymbolsToDocsMap); + classDoc.methods.push(...classDoc.statics + .filter(isMethod) + .filter(filterDuplicateMembers) as CategorizedMethodMemberDoc[]); + + classDoc.properties.push(...classDoc.statics + .filter(isProperty) + .filter(filterDuplicateMembers) as CategorizedPropertyMemberDoc[]); + // In case the extended document is not public, we don't want to print it in the // rendered class API doc. This causes confusion and also is not helpful as the // extended document is not part of the docs and cannot be viewed. diff --git a/tools/dgeni/templates/method.template.html b/tools/dgeni/templates/method.template.html index 54f77f8ed7cb..850ef760cac7 100644 --- a/tools/dgeni/templates/method.template.html +++ b/tools/dgeni/templates/method.template.html @@ -9,8 +9,13 @@ Deprecated {%- endif -%} + {%- if method.isStatic -%} +
- {$ property.name $}: {$ property.type $}
+ {%- if property.isStatic -%}static {%- endif -%}{$ property.name $}: {$ property.type $}