This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
src/demo-app/app/components Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -76,15 +76,15 @@ <h1 mdc-typography-headline>Examples</h1>
7676 < div fxLayout ="column " class ="mdc-padding ">
7777 < div fxFlexAlign ="start ">
7878 < mdc-form-field >
79- < mdc-checkbox [(ngModel)] =" isChecked " [ disabled] ="true "> </ mdc-checkbox >
80- < label mdc-checkbox-label [id] =" labelId " > Checkbox is disabled</ label >
79+ < mdc-checkbox [disabled] ="true "> </ mdc-checkbox >
80+ < label mdc-checkbox-label > Checkbox is disabled</ label >
8181 </ mdc-form-field >
8282 </ div >
8383 < p > Disabled</ p >
8484 < pre class ="prettyprint ">
8585<mdc-form-field>
86- <mdc-checkbox [(ngModel)]="isChecked" [ disabled]="true"></mdc-checkbox>
87- <label mdc-checkbox-label [id]="labelId" >Label text</label>
86+ <mdc-checkbox [disabled]="true"></mdc-checkbox>
87+ <label mdc-checkbox-label>Label text</label>
8888</mdc-form-field>
8989 </ pre >
9090 </ div >
Original file line number Diff line number Diff line change @@ -63,22 +63,22 @@ <h1 mdc-typography-headline>Examples</h1>
6363 </ mdc-form-field >
6464 < pre class ="prettyprint ">
6565<mdc-form-field>
66- <mdc-switch [(ngModel)]="isChecked "></mdc-switch>
66+ <mdc-switch [(ngModel)]="isSwitchOn "></mdc-switch>
6767 <label mdc-switch-label [id]="labelId">Label text</label>
6868</mdc-form-field>
6969 </ pre >
7070 </ div >
7171 < div fxLayout ="column " class ="mdc-padding ">
7272 < div fxFlexAlign ="start ">
7373 < mdc-form-field >
74- < mdc-switch [(ngModel)] =" isSwitchOn " [ disabled] ="true "> </ mdc-switch >
75- < label mdc-switch-label [id] =" labelId " > off/on</ label >
74+ < mdc-switch [disabled] ="true "> </ mdc-switch >
75+ < label mdc-switch-label > off/on</ label >
7676 </ mdc-form-field >
7777 < p > Disabled</ p >
7878 < pre class ="prettyprint ">
7979<mdc-form-field>
80- <mdc-switch [(ngModel)]="isChecked" [ disabled]="true"></mdc-switch>
81- <label mdc-switch-label [id]="labelId" >Label text</label>
80+ <mdc-switch [disabled]="true"></mdc-switch>
81+ <label mdc-switch-label>Label text</label>
8282</mdc-form-field>
8383 </ pre >
8484 </ div >
Original file line number Diff line number Diff line change 88 templateUrl : './switch-demo.component.html'
99} )
1010export class SwitchDemoComponent implements OnInit {
11+ isSwitchOn : boolean ;
1112
1213 ngOnInit ( ) {
1314 let doc = < HTMLDivElement > document . body ;
You can’t perform that action at this time.
0 commit comments