Interpolation
Explore Angular interpolation by learning how to reverse and display text dynamically. Understand how expressions evaluate in templates, how to bind component properties, and update the UI efficiently using double curly braces.
We'll cover the following...
It’s time to reverse the string and output the results. This will involve a process called interpolation.
Terminology
Angular loves its terminology. Some words, such as interpolation and expressions, come up frequently. Let’s explore what these are.
Expressions
In JavaScript, expressions are single lines of code that evaluate to a single value. The value can be a number, string, or logical value. There are all kinds of expressions. Arithmetic operations, basic string manipulation, and logical comparisons are all considered expressions. Here are some examples of expressions:
To add a bit more clarity, here are some examples ...