Interpolation in Angular
In a template file, you can not only display text, but also write JavaScript code, performing various operations. In Angular terms, this is called interpolation.
To perform an operation, it must be written in double curly brackets. For example, let's find the sum of two numbers:
<div>
{{ 1 + 2 }}
</div>
Now let's find the square root of the number:
<div>
{{ Math.sqrt(2) }}
</div>
Use interpolation to output the product of two numbers.
Use interpolation to round a fraction to a given sign in the fractional part.