Interpolation
What is interpolation?
How to use it?
What we can do with interpolation?
What we can not do with interpolation?
What is interpolation?
Interpolation is a technique that allows the user to bind a value to UI elements.
{{ }}: Symbol of Interpolation.
Displaying values with interpolation
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = '12';
data = 'Code step by step';
}
And use this code to /app.component.html.
Out put
How to use Function in app.components.ts and use in app.components.html
use in app.components.html
Output
How to create a component using command-
-> ng generate component login
0 Comments