Interpolation

noun

say it: “in-ter-puh-LAY-shun” /ɪnˌtɜːrpəˈleɪʃən/

The {{ }} syntax in an Angular template that shows a component's value as text.

What is Interpolation?

Interpolation is the {{ }} syntax that shows a value from the component in the template. When the value changes, the page updates.

<p>Welcome back, {{ user.firstName }}! You have {{ cartCount }} items.</p>

In a sentence

  • “Interpolation, {{ price }}, shows the price in the paragraph.”

Level: Novice · More Angular terms at this level

Updated

In other subjects