Angular video series - #3 Text interpolation

Опубликовано: 12 Октябрь 2024
на канале: Code with Sloba
2,722
94

Text Interpolation in Angular is a one-way data-binding technique that is used to transfer the data from a TypeScript code to an HTML template (view).

It uses the template expression in double curly braces (also known as moustache syntax), to display the data from the component to the view.

When do we need text interpolation in Angular? Every time we wan’t to make something dynamic in our HTML template.

A template expression produces a value and appears within double curly braces, {{ }}.

Angular resolves the expression and assigns it to a property of a binding target

Template expressions are similar to JavaScript

************************************************************

0:00 Intro
0:20 When to use them?
0:27 Implementing string interpolation
0:49 Template expressions
2:10 Outro

************************************************************
Previous Video:    • Angular video series - #2 Lifecycle h...  
Next video:    • Angular video series - #4 Component c...  
Full series:    • Full Angular Course  
************************************************************
Linkedin: link   / slobodan-gajic  
Portfolio: https://bobangajicsm.github.io/portfo...
Twitter:   / _slobodangajic_  
************************************************************