You are talking about Interpolation and Property Binding.
Both will give you same result.
Interpolation
Interpolation is a special syntax that Angular converts into property binding. It’s a convenient alternative to property binding.
For Ex :
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `<div>
<h1>{{citedExample}}</h1>
<img src=' https://angular.io/{{imagePath}}'/>
</div>`
})
export class AppComponent {
citedExample: string = 'Interpolation';
imagePath: string = 'assets/images/logos/angular/logo-nav@2x.png';
}
Property Binding
Property Binding to set an element property to a non-string data value, you must use property binding.
For Ex :
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `<div>
<button [disabled]='isDisabled'>Try Me</button>
</div>`
})
export class AppComponent {
isDisabled: boolean = true;
}
If we decide to use interpolation instead of property binding, the button will always be disabled irrespective of isDisabled class property value is true of false.