Skip to content

Commit 026899c

Browse files
Angular Templates: add info about ng-content (DevExpress#6985) (DevExpress#6992)
1 parent d606ce5 commit 026899c

File tree

1 file changed

+9
-7
lines changed
  • concepts/40 Angular Components/20 Component Configuration Syntax/37 Templates

1 file changed

+9
-7
lines changed

concepts/40 Angular Components/20 Component Configuration Syntax/37 Templates/37 Templates.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ Templates allow you to customize UI component elements. In the following code, a
1414
</div>
1515
</dx-list>
1616

17-
[note] The `dxTemplate` attribute directive cannot be used on custom markup elements.
17+
[note]
1818

19-
Refer to the common [Custom Templates](/concepts/05%20UI%20Components/zz%20Common/30%20Templates/10%20Custom%20Templates.md '/Documentation/Guide/UI_Components/Common/Templates/#Custom_Templates') article for more information.
19+
- The `dxTemplate` attribute directive cannot be used on custom markup elements.
2020

21-
[note]
21+
- An HTML element with the `dxTemplate` attribute directive does not automatically track changes made with [ng-content](https://angular.dev/guide/components/content-projection). For instance, if you call the **repaint** method or update Angular bindings, the `dxTemplate` element does not reinitialize the `ng-content` components.
2222

23-
Angular has a built-in `template` directive. This causes an error when you try to specify an eponymous property on a configuration component (for instance, on `dxo-master-detail`). In this case, use the following syntax:
23+
- Angular has a built-in `template` directive. This causes an error when you try to specify an eponymous property on a configuration component (for instance, on `dxo-master-detail`). In this case, use the following syntax:
24+
25+
<!--HTML-->
26+
<dxo-master-detail [template]="'masterDetail'"></dxo-master-detail>
2427

25-
<!--HTML-->
26-
<dxo-master-detail [template]="'masterDetail'"></dxo-master-detail>
27-
2828
[/note]
29+
30+
Refer to the common [Custom Templates](/concepts/05%20UI%20Components/zz%20Common/30%20Templates/10%20Custom%20Templates.md '/Documentation/Guide/UI_Components/Common/Templates/#Custom_Templates') article for more information.

0 commit comments

Comments
 (0)