mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Adds support for using tagged template literals in Angular templates.
Ex:
```
@Component({
template: '{{ greet`Hello, ${name()}` }}'
})
export class MyComp {
name = input();
greet(strings: TemplateStringsArray, name: string) {
return strings[0] + name + strings[1] + '!';
}
}
```
PR Close #59947
|
||
|---|---|---|
| .. | ||
| util | ||
| view | ||
| BUILD.bazel | ||
| r3_ast_absolute_span_spec.ts | ||
| r3_ast_spans_spec.ts | ||
| r3_template_transform_spec.ts | ||
| README.md | ||
| style_parser_spec.ts | ||
Tests in this directory are excluded from running in the browser and only run in node.