Skip to content

Commit 0da47aa

Browse files
Refactoring
1 parent e87d85f commit 0da47aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/component.tst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,20 @@ import { WatcherHelper } from '../core/watcher-helper';
5050

5151
<#? it.isEditor #>
5252

53-
const CUSTOM_VALUE_ACCESSOR = {
53+
const CUSTOM_VALUE_ACCESSOR_PROVIDER = {
5454
provide: NG_VALUE_ACCESSOR,
5555
useExisting: forwardRef(() => <#= it.className #>Component),
5656
multi: true
5757
};<#?#>
5858

5959
@Component({
60-
selector: '<#= it.selector #><#? it.isEditor #>, <#= it.selector #>[formControlName],<#= it.selector #>[formControl],<#= it.selector #>[ngModel]<#?#>',
60+
selector: '<#= it.selector #>',
6161
template: '<#? it.isTranscludedContent #><ng-content></ng-content><#?#>',<#? it.isViz #>
6262
styles: [ ' :host { display: block; }'],<#?#>
6363
providers: [
6464
DxTemplateHost,
6565
WatcherHelper,<#? it.isEditor #>
66-
CUSTOM_VALUE_ACCESSOR,<#?#>
66+
CUSTOM_VALUE_ACCESSOR_PROVIDER,<#?#>
6767
NestedOptionHost<#? collectionProperties.length #>,
6868
IterableDifferHelper<#?#>
6969
]

0 commit comments

Comments
 (0)