Angular 4: Data Binding Property Binding

Create a boolean variable ‘show’ in app.component.ts

export class AppComponent {
   show: boolean = false;
}

Set the property ‘disabled’ of a button in app.component.html

<button class="btn btn-primary" [disabled]="show">Button</button>