Skip to content

Commit 3b80a6c

Browse files
devversionjelbourn
authored andcommitted
update(slide-toggle): remove CRLF line endings (#1712)
* Previously the slide-toggle files were commited with CRLF line endings, but to provide consistency those should be only LF.
1 parent b541f09 commit 3b80a6c

File tree

5 files changed

+800
-800
lines changed

5 files changed

+800
-800
lines changed
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
<div>
2-
3-
<md-slide-toggle color="primary" [(ngModel)]="firstToggle">
4-
Default Slide Toggle
5-
</md-slide-toggle>
6-
7-
<md-slide-toggle [(ngModel)]="firstToggle" disabled>
8-
Disabled Slide Toggle
9-
</md-slide-toggle>
10-
11-
<md-slide-toggle [disabled]="firstToggle">
12-
Disable Bound
13-
</md-slide-toggle>
14-
15-
<p>Example where the slide toggle is required inside of a form.</p>
16-
17-
<form #form="ngForm" (ngSubmit)="onFormSubmit()">
18-
19-
<md-slide-toggle name="slideToggle" required ngModel>
20-
Slide Toggle
21-
</md-slide-toggle>
22-
23-
<p>
24-
<button md-raised-button type="submit">Submit Form</button>
25-
</p>
26-
27-
</form>
28-
1+
<div>
2+
3+
<md-slide-toggle color="primary" [(ngModel)]="firstToggle">
4+
Default Slide Toggle
5+
</md-slide-toggle>
6+
7+
<md-slide-toggle [(ngModel)]="firstToggle" disabled>
8+
Disabled Slide Toggle
9+
</md-slide-toggle>
10+
11+
<md-slide-toggle [disabled]="firstToggle">
12+
Disable Bound
13+
</md-slide-toggle>
14+
15+
<p>Example where the slide toggle is required inside of a form.</p>
16+
17+
<form #form="ngForm" (ngSubmit)="onFormSubmit()">
18+
19+
<md-slide-toggle name="slideToggle" required ngModel>
20+
Slide Toggle
21+
</md-slide-toggle>
22+
23+
<p>
24+
<button md-raised-button type="submit">Submit Form</button>
25+
</p>
26+
27+
</form>
28+
2929
</div>
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import {Component} from '@angular/core';
2-
3-
4-
@Component({
5-
moduleId: module.id,
6-
selector: 'switch-demo',
7-
templateUrl: 'slide-toggle-demo.html',
8-
styleUrls: ['slide-toggle-demo.css'],
9-
})
10-
export class SlideToggleDemo {
11-
firstToggle: boolean;
12-
13-
onFormSubmit() {
14-
alert(`You submitted the form.`);
15-
}
16-
17-
}
1+
import {Component} from '@angular/core';
2+
3+
4+
@Component({
5+
moduleId: module.id,
6+
selector: 'switch-demo',
7+
templateUrl: 'slide-toggle-demo.html',
8+
styleUrls: ['slide-toggle-demo.css'],
9+
})
10+
export class SlideToggleDemo {
11+
firstToggle: boolean;
12+
13+
onFormSubmit() {
14+
alert(`You submitted the form.`);
15+
}
16+
17+
}
Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
<label class="md-slide-toggle-label">
2-
3-
<div class="md-slide-toggle-container">
4-
<div class="md-slide-toggle-bar"></div>
5-
6-
<div class="md-slide-toggle-thumb-container"
7-
(slidestart)="_onDragStart()"
8-
(slide)="_onDrag($event)"
9-
(slideend)="_onDragEnd()">
10-
11-
<div class="md-slide-toggle-thumb">
12-
<div class="md-ink-ripple"></div>
13-
</div>
14-
</div>
15-
16-
<input #input class="md-slide-toggle-input md-visually-hidden" type="checkbox"
17-
[id]="getInputId()"
18-
[required]="required"
19-
[tabIndex]="tabIndex"
20-
[checked]="checked"
21-
[disabled]="disabled"
22-
[attr.name]="name"
23-
[attr.aria-label]="ariaLabel"
24-
[attr.aria-labelledby]="ariaLabelledby"
25-
(blur)="_onInputBlur()"
26-
(focus)="_onInputFocus()"
27-
(change)="_onChangeEvent($event)"
28-
(click)="_onInputClick($event)">
29-
</div>
30-
<span class="md-slide-toggle-content">
31-
<ng-content></ng-content>
32-
</span>
33-
</label>
1+
<label class="md-slide-toggle-label">
2+
3+
<div class="md-slide-toggle-container">
4+
<div class="md-slide-toggle-bar"></div>
5+
6+
<div class="md-slide-toggle-thumb-container"
7+
(slidestart)="_onDragStart()"
8+
(slide)="_onDrag($event)"
9+
(slideend)="_onDragEnd()">
10+
11+
<div class="md-slide-toggle-thumb">
12+
<div class="md-ink-ripple"></div>
13+
</div>
14+
</div>
15+
16+
<input #input class="md-slide-toggle-input md-visually-hidden" type="checkbox"
17+
[id]="getInputId()"
18+
[required]="required"
19+
[tabIndex]="tabIndex"
20+
[checked]="checked"
21+
[disabled]="disabled"
22+
[attr.name]="name"
23+
[attr.aria-label]="ariaLabel"
24+
[attr.aria-labelledby]="ariaLabelledby"
25+
(blur)="_onInputBlur()"
26+
(focus)="_onInputFocus()"
27+
(change)="_onChangeEvent($event)"
28+
(click)="_onInputClick($event)">
29+
</div>
30+
<span class="md-slide-toggle-content">
31+
<ng-content></ng-content>
32+
</span>
33+
</label>

0 commit comments

Comments
 (0)