diff --git a/tools/dgeni/templates/class.template.html b/tools/dgeni/templates/class.template.html index 12984be4f8be..ae2084207e75 100644 --- a/tools/dgeni/templates/class.template.html +++ b/tools/dgeni/templates/class.template.html @@ -1,5 +1,5 @@ -

{$ class.name $}

-

{$ class.description $}

+

{$ class.name $}

+

{$ class.description $}

{$ propertyList(class.properties) $} diff --git a/tools/dgeni/templates/componentGroup.template.html b/tools/dgeni/templates/componentGroup.template.html index fb65e0822b6e..214a8ac3cb8c 100644 --- a/tools/dgeni/templates/componentGroup.template.html +++ b/tools/dgeni/templates/componentGroup.template.html @@ -32,14 +32,14 @@ {% include 'class.template.html' %} {% endmacro %} -

{$ doc.name $}

-

+

{$ doc.name $}

+

Module: {$ doc.ngModule.name $}

{%- if doc.services.length -%} -

Services

+

Services

{% for service in doc.services %} {$ class(service) $} {% endfor %} diff --git a/tools/dgeni/templates/method-list.template.html b/tools/dgeni/templates/method-list.template.html index 9e2792faa21a..f48d604f880b 100644 --- a/tools/dgeni/templates/method-list.template.html +++ b/tools/dgeni/templates/method-list.template.html @@ -1,5 +1,5 @@ {%- if methodList.length -%} -
Methods
+

Methods

{% for m in methodList %} {$ method(m) $} {% endfor %} diff --git a/tools/dgeni/templates/method.template.html b/tools/dgeni/templates/method.template.html index d28462aa15a6..5bad88f5a22a 100644 --- a/tools/dgeni/templates/method.template.html +++ b/tools/dgeni/templates/method.template.html @@ -1,40 +1,50 @@ - - - - - - +
{$ method.name $}
{$ method.description $}
+ + + + + + + {%- if method.params.length -%} - - - + + + + + {% for parameter in method.params %} - - + - {% endfor %} {%- endif -%} {%- if method.showReturns -%} + + + + + - - - - - + + {%- endif -%}
{$ method.name $}
{$ method.description $}
Parameters
Parameters
-

+

+

{$ parameter.name $} {%- if parameter.isOptional -%} - ? + ? {%- endif -%}

-

{$ parameter.type $}

+ {$ parameter.type $}
- {$ parameter.description $} + +

{$ parameter.description $}

Returns
Returns
{$ method.returnType $}{$ method.returns.description $} + {$ method.returnType $} + +

{$ method.returns.description $}

+
diff --git a/tools/dgeni/templates/property-list.template.html b/tools/dgeni/templates/property-list.template.html index dbae2c78d1a9..d22b7e60aa59 100644 --- a/tools/dgeni/templates/property-list.template.html +++ b/tools/dgeni/templates/property-list.template.html @@ -1,9 +1,9 @@ {%- if propertyList.length -%} -
Properties
- - - - +

Properties

+
NameDescription
+ + + {% for p in propertyList %} {$ property(p) $} diff --git a/tools/dgeni/templates/property.template.html b/tools/dgeni/templates/property.template.html index 47ed849bdf25..eecb2019b35f 100644 --- a/tools/dgeni/templates/property.template.html +++ b/tools/dgeni/templates/property.template.html @@ -1,22 +1,28 @@ - - + - +
NameDescription
+
{%- if property.isDirectiveInput -%} - {%- if property.directiveInputAlias -%} -

@Input({$ property.directiveInputAlias $})

- {% else %} -

@Input()

- {%- endif -%} +
+ {%- if property.directiveInputAlias -%} + @Input({$ property.directiveInputAlias $}) + {% else %} + @Input() + {%- endif -%} +
{%- endif -%} {%- if property.isDirectiveOutput -%} - {%- if property.directiveOutputAlias -%} -

@Output({$ property.directiveOutputAlias $})

- {% else %} -

@Output()

- {%- endif -%} +
+ {%- if property.directiveOutputAlias -%} + @Output({$ property.directiveOutputAlias $}) + {% else %} + @Output() + {%- endif -%} +
{%- endif -%} -

{$ property.name $}

-

{$ property.type $}

+

+ {$ property.name $} +

+ {$ property.type $}
{$ property.description $}{$ property.description $}