Skip to content

Commit f2bdf64

Browse files
committed
add template literal template
1 parent c2e9a7f commit f2bdf64

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/app/templates/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { ifThenElseTemplate } from "./if-then-else";
99
import { nestedNodesTemplate } from "./nested-nodes";
1010
import { NgModelTemplate } from "./ng-model";
1111
import { simpleAtLet } from "./simple-at-let";
12+
import { templateLiteral } from "./template-literal";
1213

1314
export type Template = Record<'label' | 'content', string>;
1415

@@ -24,4 +25,5 @@ export const templates: Template[] = [
2425
{ label: 'child component', content: childComponentTemplate },
2526
{ label: 'simple @let', content: simpleAtLet},
2627
{ label: 'double binding (banna in a box)', content: bananaBoxTemplate },
28+
{ label: 'template literal', content: templateLiteral },
2729
];

src/app/templates/template-literal.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const templateLiteral =
2+
`<div>{{\`-- \${foo} --\`}}</div>`

0 commit comments

Comments
 (0)