Skip to content

Commit 62fc9ea

Browse files
authored
docs(examples): replace md-input with mdInput (#3135)
* docs(examples): replace md-input with mdInput * more changes
1 parent c618f85 commit 62fc9ea

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

src/examples/chips-stacked/chips-stacked-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<md-chip-list class="md-chip-list-stacked">
1+
<md-chip-list class="mat-chip-list-stacked">
22
<md-chip *ngFor="let chipColor of availableColors"
33
selected="true"
44
color="{{chipColor.color}}">

src/examples/input-form/input-form-example.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
<form class="example-form">
22
<md-input-container class="example-full-width">
3-
<input md-input placeholder="Company (disabled)" disabled value="Google">
3+
<input mdInput placeholder="Company (disabled)" disabled value="Google">
44
</md-input-container>
55

66
<table class="example-full-width" cellspacing="0"><tr>
77
<td><md-input-container class="example-full-width">
8-
<input md-input placeholder="First name">
8+
<input mdInput placeholder="First name">
99
</md-input-container></td>
1010
<td><md-input-container class="example-full-width">
11-
<input md-input placeholder="Long Last Name That Will Be Truncated">
11+
<input mdInput placeholder="Long Last Name That Will Be Truncated">
1212
</md-input-container></td>
1313
</tr></table>
1414

1515
<p>
1616
<md-input-container class="example-full-width">
17-
<textarea md-input placeholder="Address">1600 Amphitheatre Pkwy</textarea>
17+
<textarea mdInput placeholder="Address">1600 Amphitheatre Pkwy</textarea>
1818
</md-input-container>
1919
<md-input-container class="example-full-width">
20-
<textarea md-input placeholder="Address 2"></textarea>
20+
<textarea mdInput placeholder="Address 2"></textarea>
2121
</md-input-container>
2222
</p>
2323

2424
<table class="example-full-width" cellspacing="0"><tr>
2525
<td><md-input-container class="example-full-width">
26-
<input md-input placeholder="City">
26+
<input mdInput placeholder="City">
2727
</md-input-container></td>
2828
<td><md-input-container class="example-full-width">
29-
<input md-input placeholder="State">
29+
<input mdInput placeholder="State">
3030
</md-input-container></td>
3131
<td><md-input-container class="example-full-width">
32-
<input md-input #postalCode maxlength="5" placeholder="Postal Code" value="94043">
32+
<input mdInput #postalCode maxlength="5" placeholder="Postal Code" value="94043">
3333
<md-hint align="end">{{postalCode.value.length}} / 5</md-hint>
3434
</md-input-container></td>
3535
</tr></table>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<md-input-container>
2-
<input md-input placeholder="Favorite food" value="Sushi">
2+
<input mdInput placeholder="Favorite food" value="Sushi">
33
</md-input-container>

src/examples/slider-configurable/slider-configurable-example.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ <h2 class="example-h2">Slider configuration</h2>
44

55
<section class="example-section">
66
<md-input-container class="example-margin">
7-
<input md-input type="number" placeholder="Value" [(ngModel)]="value">
7+
<input mdInput type="number" placeholder="Value" [(ngModel)]="value">
88
</md-input-container>
99
<md-input-container class="example-margin">
10-
<input md-input type="number" placeholder="Min value" [(ngModel)]="min">
10+
<input mdInput type="number" placeholder="Min value" [(ngModel)]="min">
1111
</md-input-container>
1212
<md-input-container class="example-margin">
13-
<input md-input type="number" placeholder="Max value" [(ngModel)]="max">
13+
<input mdInput type="number" placeholder="Max value" [(ngModel)]="max">
1414
</md-input-container>
1515
<md-input-container class="example-margin">
16-
<input md-input type="number" placeholder="Step size" [(ngModel)]="step">
16+
<input mdInput type="number" placeholder="Step size" [(ngModel)]="step">
1717
</md-input-container>
1818
</section>
1919

@@ -23,7 +23,7 @@ <h2 class="example-h2">Slider configuration</h2>
2323
Auto ticks
2424
</md-checkbox>
2525
<md-input-container class="example-margin" *ngIf="showTicks && !autoTicks">
26-
<input md-input type="number" placeholder="Tick interval" [(ngModel)]="tickInterval">
26+
<input mdInput type="number" placeholder="Tick interval" [(ngModel)]="tickInterval">
2727
</md-input-container>
2828
</section>
2929

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<md-input-container>
2-
<input md-input value="Disco party!" placeholder="Message" #message>
2+
<input mdInput value="Disco party!" placeholder="Message" #message>
33
</md-input-container>
44

55
<md-input-container>
6-
<input md-input value="Dance" placeholder="Action" #action>
6+
<input mdInput value="Dance" placeholder="Action" #action>
77
</md-input-container>
88

99
<button md-button (click)="openSnackBar(message.value, action.value)">Show snack-bar</button>

src/lib/chips/chip-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {SPACE, LEFT_ARROW, RIGHT_ARROW} from '../core/keyboard/keycodes';
2929
@Component({
3030
moduleId: module.id,
3131
selector: 'md-chip-list, mat-chip-list',
32-
template: `<div class="md-chip-list-wrapper"><ng-content></ng-content></div>`,
32+
template: `<div class="mat-chip-list-wrapper"><ng-content></ng-content></div>`,
3333
host: {
3434
// Properties
3535
'tabindex': '0',

0 commit comments

Comments
 (0)