File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 101
101
< button md-button > Check< md-icon class ="md-24 "> favorite</ md-icon > </ button >
102
102
< button md-button > Last< md-icon > navigate_before</ md-icon > </ button >
103
103
</ section >
104
+ < section >
105
+ < button md-raised-button [disabled] ="toggleDisable " (click) ="toggleDisable = true "> Disable</ button >
106
+ < button md-button [disabled] ="!toggleDisable " (click) ="toggleDisable = false "> Disable</ button >
107
+ </ section >
104
108
</ div >
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ import {Component} from '@angular/core';
10
10
export class ButtonDemo {
11
11
isDisabled : boolean = false ;
12
12
clickCounter : number = 0 ;
13
+ toggleDisable : boolean = false ;
13
14
}
Original file line number Diff line number Diff line change 1
1
< span class ="mat-button-wrapper "> < ng-content > </ ng-content > </ span >
2
- < div md-ripple *ngIf =" !_isRippleDisabled() " class ="mat-button-ripple "
2
+ < div md-ripple class ="mat-button-ripple "
3
3
[class.mat-button-ripple-round] ="_isRoundButton || _isIconButton "
4
+ [mdRippleDisabled] ="_isRippleDisabled() "
4
5
[mdRippleCentered] ="_isIconButton "
5
6
[mdRippleTrigger] ="_getHostElement() "> </ div >
6
7
<!-- the touchstart handler prevents the overlay from capturing the initial tap on touch devices -->
You can’t perform that action at this time.
0 commit comments