app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
disabled3rd = true;
disabled4th = false;
}
app.component.html
<h2>Angular Property Binding</h2>
<input type="text" value="" [disabled]=true/>
<br/><br/>
<input type="text" value="" [disabled]=false/>
<br/><br/>
<input type="text" value="" [disabled]="disabled3rd"/>
<br/><br/>
<input type="text" value="" [disabled]="disabled4th"/>
- angular - Interpolation expression
- angular - Interpolation string concatenation
- angular - Interpolation JavaScript property
- angular - Interpolation JavaScript method
- angular - Interpolation call method
- angular - How to use if else condition
- angular - How to use then else condition
- angular - Multiple condition
- angular - How to use switch case default
- angular - How to use for loop
- angular - How to bind style
- angular - How to bind multiple style
- angular - Text input on change listener
- angular - How to get text input value
- angular - How to create a counter