Interpolation binding

Interpolation binding allows you to bind component data inside the template where needed. You use interpolation binding by surrounding the relevant expression with double curly braces:

<span>{{ name }}</span>

In the preceding example, the component view displays a name field or property from the Component class as the span content. When the name field changes in the component, so does the view.

Get Hands-On Full-Stack Web Development with ASP.NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.