From the course: Angular Essential Training (2019)

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Interpolation and the expression context

Interpolation and the expression context - Angular Tutorial

From the course: Angular Essential Training (2019)

Start my 1-month free trial

Interpolation and the expression context

- [Instructor] Up to this point, we have seen how we can get static HTML into the component templates and get components into the component templates. Let's take a look at ways Angular allows us to mark up our template code to get more use out of it. Angular has a template syntax that it supports which is made up of interpolation, binding, expressions, conditional templating, template variables, and template expression operators. We will cover these in more detail in other lessons in this course, but let's begin in this lesson by covering interpolation. Interpolation is a way to get data displayed in the view. That's head to the media-item.component.html file and check out interpolation in action. You do interpolation by using a pair of matching curly braces in the markup. And the contents of the double curly braces is a JavaScript like expression that Angular will evaluate and then convert to a string. So we can add a pair…

Contents