Angular 7 String Interpolation - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
Angular 7 String Interpolation

Angular 7 String Interpolation


 In Angular, String interpolation is used to display dynamic data on HTML template (at user end). It facilitates you to make changes on component.ts file and fetch data from there to HTML template (component.html file).
import {Component} from '@angular/core';  
@Component(  
  {selector: 'app-server',  
 templateUrl: 'server.component.html'})  
export class ServerComponent {  
  serverID: number = 10;  
    serverStatus: string = 'Online';  
}

 Difference between String interpolation and Property Binding

String Interpolation is a special syntax which is converted to property binding by Angular. It's a convenient alternative to property binding.


About Mariano

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.