mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
@@ -46,7 +46,7 @@ Angular supports binding dynamic values into DOM properties with square brackets
|
||||
```angular-ts
|
||||
@Component({
|
||||
/*...*/
|
||||
// Set the `disabled` property of the button based on the value of `isAccountDisabled`.
|
||||
// Set the `disabled` property of the button based on the value of `isValidUserId`.
|
||||
template: `<button [disabled]="isValidUserId()">Save changes</button>`,
|
||||
})
|
||||
export class UserProfile {
|
||||
|
||||
Reference in New Issue
Block a user