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 - Angular Tutorial
From the course: Angular Essential Training (2019)
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
-
-
-
-
NgModule and the root module5m 57s
-
Component metadata2m 8s
-
Bootstrapping the module for the browser3m 12s
-
The component selector2m 26s
-
The component template2m 31s
-
Styling a component4m 50s
-
Using other components in a component2m 59s
-
Interpolation and the expression context3m 11s
-
Property binding2m 24s
-
Event binding1m 44s
-
Getting data to the component with @Input4m 47s
-
Subscribing to component events with @Output4m 4s
-
-
-
-
-
-
-
-