How to use different syntax for Angular Interpolation

added by DotNetKicks
6/10/2020 3:39:13 PM

548 Views

The first thing a developer learns in Angular is data binding and, specifically, interpolation. You use interpolation as one-way data binding. It embeds expressions in the marked-up texts. You use interpolation to evaluate a template expression and display the data as shown below, @Component({ selector:'app-root', template:` {{count}} ` }) export class AppComponent{ count: number = 7; } You should get seven printed as the output of the application.


0 comments