@@ -21,7 +21,7 @@ class MyTel {
21
21
}
22
22
23
23
@Component ({
24
- selector: ' my -tel-input' ,
24
+ selector: ' example -tel-input' ,
25
25
template: `
26
26
<div [formGroup]="parts">
27
27
<input class="area" formControlName="area" size="3">
@@ -134,7 +134,7 @@ element and just generate a unique ID for it.
134
134
``` ts
135
135
static nextId = 0 ;
136
136
137
- @HostBinding () id = ` my -tel-input-${MyTelInput .nextId ++ }` ;
137
+ @HostBinding () id = ` example -tel-input-${MyTelInput .nextId ++ }` ;
138
138
```
139
139
140
140
#### ` placeholder `
@@ -313,11 +313,11 @@ errorState = false;
313
313
This property allows us to specify a unique string for the type of control in form field. The
314
314
` <mat-form-field> ` will add an additional class based on this type that can be used to easily apply
315
315
special styles to a ` <mat-form-field> ` that contains a specific type of control. In this example
316
- we'll use ` my -tel-input` as our control type which will result in the form field adding the class
317
- ` mat-form-field-my -tel-input ` .
316
+ we'll use ` example -tel-input` as our control type which will result in the form field adding the
317
+ class ` mat-form-field-example -tel-input ` .
318
318
319
319
``` ts
320
- controlType = ' my -tel-input' ;
320
+ controlType = ' example -tel-input' ;
321
321
```
322
322
323
323
#### ` setDescribedByIds(ids: string[]) `
@@ -356,7 +356,7 @@ do is place it inside of a `<mat-form-field>`
356
356
357
357
``` html
358
358
<mat-form-field >
359
- <my -tel-input ></my -tel-input >
359
+ <example -tel-input ></example -tel-input >
360
360
</mat-form-field >
361
361
```
362
362
@@ -366,7 +366,7 @@ the error state).
366
366
367
367
``` html
368
368
<mat-form-field >
369
- <my -tel-input placeholder =" Phone number" required ></my -tel-input >
369
+ <example -tel-input placeholder =" Phone number" required ></example -tel-input >
370
370
<mat-icon matPrefix >phone</mat-icon >
371
371
<mat-hint >Include area code</mat-hint >
372
372
</mat-form-field >
0 commit comments