Interpolations
Interpolations are quite simple. The expression (commonly known as a template expression) inside the interpolation symbols ({{ }}) is evaluated in the context of the model (or the component class members), and the outcome of the evaluation (string) is embedded in HTML. A handy framework construct to display a component's data/properties. We render the exercise title and the exercise time remaining using interpolation:
<h1>{{currentExercise.exercise.title}}</h1>
... <h1>Time Remaining: {{currentExercise.duration?-exerciseRunningDuration}}</h1>
Remember that interpolations synchronize model changes with the view. Interpolation is one way of binding from a model to a view.
Interpolations, in fact, are a special case of property binding, which allows us to bind any HTML element/component properties to a model. We will shortly discuss how an interpolation can be written using property binding syntax. Consider interpolation as syntactical sugar over property binding.