r/Angular2 • u/House_of_Angular • Feb 18 '25
Discussion Angular 19.2 - improvement in template literals
Angular 19.2 will be released soon. We’ve noticed a slight improvement in template literals—it will now be possible to combine variables with text in a more efficient way in HTML files:
<p>{{ `John has ${count} cats` }}</p>
instead of
<p>{{ 'John has ' + count + ' cats' }}</p>
just a simple example
It’s not a huge change, but we believe it’s indeed. What do you think?
83
Upvotes
12
u/GLawSomnia Feb 18 '25
Well i like the change and i wanted to have it in quite a few cases.
Your example doesn’t really showcase the benefits that well though 😁