Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 5f2f220

Browse files
committed
docs(demo-app): Minor improvements to the switch and checkbox demo screens.
1 parent 8f4ef37 commit 5f2f220

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/demo-app/app/components/checkbox-demo/checkbox-demo.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
&lt;mdc-form-field&gt;
86-
&lt;mdc-checkbox [(ngModel)]="isChecked" [disabled]="true"&gt;&lt;/mdc-checkbox&gt;
87-
&lt;label mdc-checkbox-label [id]="labelId"&gt;Label text&lt;/label&gt;
86+
&lt;mdc-checkbox [disabled]="true"&gt;&lt;/mdc-checkbox&gt;
87+
&lt;label mdc-checkbox-label&gt;Label text&lt;/label&gt;
8888
&lt;/mdc-form-field&gt;
8989
</pre>
9090
</div>

src/demo-app/app/components/switch-demo/switch-demo.component.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,22 @@ <h1 mdc-typography-headline>Examples</h1>
6363
</mdc-form-field>
6464
<pre class="prettyprint">
6565
&lt;mdc-form-field&gt;
66-
&lt;mdc-switch [(ngModel)]="isChecked"&gt;&lt;/mdc-switch&gt;
66+
&lt;mdc-switch [(ngModel)]="isSwitchOn"&gt;&lt;/mdc-switch&gt;
6767
&lt;label mdc-switch-label [id]="labelId"&gt;Label text&lt;/label&gt;
6868
&lt;/mdc-form-field&gt;
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
&lt;mdc-form-field&gt;
80-
&lt;mdc-switch [(ngModel)]="isChecked" [disabled]="true"&gt;&lt;/mdc-switch&gt;
81-
&lt;label mdc-switch-label [id]="labelId"&gt;Label text&lt;/label&gt;
80+
&lt;mdc-switch [disabled]="true"&gt;&lt;/mdc-switch&gt;
81+
&lt;label mdc-switch-label&gt;Label text&lt;/label&gt;
8282
&lt;/mdc-form-field&gt;
8383
</pre>
8484
</div>

src/demo-app/app/components/switch-demo/switch-demo.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
templateUrl: './switch-demo.component.html'
99
})
1010
export class SwitchDemoComponent implements OnInit {
11+
isSwitchOn: boolean;
1112

1213
ngOnInit() {
1314
let doc = <HTMLDivElement>document.body;

0 commit comments

Comments
 (0)