Skip to content

Commit 85a9a53

Browse files
committed
fix(demo): dynamic code example
1 parent 5f5a8ec commit 85a9a53

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

projects/elements-demo/src/app/features/examples/dynamic/dynamic.component.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,15 @@ export default <Routes>[
144144
];
145145
`;
146146

147-
export const CODE_EXAMPLE_3_HTML = `&#64;for(c of dynamicConfigs; track c.url) {
147+
export const CODE_EXAMPLE_3_HTML = `@for(c of dynamicConfigs; track c.url) {
148148
<ax-lazy-element
149149
*axLazyElementDynamic="c.tag; url: c.url; module: c.isModule"
150150
(click)="performAction(c.actionName)"
151-
raised
151+
[name]="c.name ? c.name : undefined"
152152
>
153-
{{ c.content }}
153+
@if (c.content) {
154+
{{ c.content }}
155+
}
154156
</ax-lazy-element>
155157
}
156158

0 commit comments

Comments
 (0)