Jan 6, 2020 in Angular
Q: What is string interpolation in Angular?

1 Answer

0 votes
Jan 6, 2020

Also referred to as moustache syntax, string interpolation in Angular refers to a special type of syntax that makes use of template expressions in order to display the component data. These template expressions are enclosed within double curly braces i.e. {{ }}.

The JavaScript expressions that are to be executed by Angular are added within the curly braces and the corresponding output is embedded into the HTML code. Typically, these expressions are updated and registered like watches as a part of the digest cycle.

Related questions

0 votes
Feb 5 in Angular
0 votes
Jan 15, 2020 in Angular
...