Jun 6, 2021
What is interpolation in angular ?
Templates always need text or string to be dynamic at runtime. So angular given us
Interpolation technique to title, username, error messages etc
We put inside {{text }} double curly braces
Class file
userName = “Anil”
Template
Welcome, {{userName}}
Some time we need maths expression
Conditions
Real Count Wins {{ total + 56 == 200 ? “Winner”: “Loser”}}
Can’t use javascript expression
+= , new , instanceof , typeof , ;
Angular runs template expressions after every change detection cycle runs.