Answers for "use property in angular 8"


use property in angular 8

import { Component } from '@angular/core';    
  selector: 'app-root',    
  templateUrl: './app.component.html',    
  styleUrls: ['./app.component.css']    
export class AppComponent {   
  // this is property and you can use in your ts file 
  title = "Data binding using Property Binding";      

// and this is your html code looks like

<h2>{{ title }}</h2> <!-- String Interpolation -->    
<img [src]="imgUrl" /> <!-- Property Binding -->   
Posted by: Guest on November-23-2020

Code answers related to "use property in angular 8"

Code answers related to "Javascript"

Browse Popular Code Answers by Language