Skip to content

Commit 8ebc382

Browse files
Don't generate comment for empty description (#659)
1 parent 0709972 commit 8ebc382

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

templates/component.tst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ const CUSTOM_VALUE_ACCESSOR_PROVIDER = {
6060
multi: true
6161
};<#?#>
6262

63-
/**
63+
<#? it.description #>/**
6464
* <#= it.description #>
65-
*/
65+
*/<#?#>
6666
@Component({
6767
selector: '<#= it.selector #>',
6868
template: '<#? it.isTranscludedContent #><ng-content></ng-content><#?#>',<#? it.isViz #>
@@ -81,10 +81,10 @@ export class <#= it.className #>Component extends <#= baseClass #> <#? implement
8181
@ContentChild(DxValidatorComponent)
8282
validator: DxValidatorComponent;
8383
<#?#>
84-
<#~ it.properties :prop:i #>
84+
<#~ it.properties :prop:i #><#? prop.description #>
8585
/**
8686
* <#= prop.description #>
87-
*/
87+
*/<#?#>
8888
@Input()
8989
get <#= prop.name #>(): <#= prop.type #> {
9090
return this._getOption('<#= prop.name #>');
@@ -94,10 +94,10 @@ export class <#= it.className #>Component extends <#= baseClass #> <#? implement
9494
}<#? i < it.properties.length-1 #>
9595

9696
<#?#><#~#>
97-
<#~ it.events :event:i #>
97+
<#~ it.events :event:i #><#? event.description #>
9898
/**
9999
* <#= event.description #>
100-
*/
100+
*/<#?#>
101101
@Output() <#= event.emit #>: <#= event.type #>;<#? i < it.events.length-1 #>
102102
<#?#><#~#>
103103

0 commit comments

Comments
 (0)