Anil Kumar
May 23, 2023

Basic level — What is interpolation in angular?

credit for unsplash

interpolation mean transforming and resulting something.

Now in our frontend angular world for display the the values in html template using enclosing curly braces {{ }}.

in class ts file

public name: string = "Ram";
public count : number = 3;

in template ( html)

Welcome <span>{{name}}</span>,
<span>Welcome {{name}} </span>
<span> Great {{count + 1}}