mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
51b8ff23ce
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
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT