Skip to content

Commit 46dbaef

Browse files
Update static/usage/v8/toggle/helper-error/angular/example_component_html.md
Co-authored-by: Brandy Smith <[email protected]>
1 parent ec266be commit 46dbaef

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
```html
2-
<form [formGroup]="myForm" (ngSubmit)="onSubmit()">
3-
<ion-toggle formControlName="wifi" helperText="This needs to be enabled" errorText="This field is required">
2+
<form [formGroup]="myForm">
3+
<ion-toggle
4+
formControlName="wifi"
5+
helperText="Enable to connect to available networks"
6+
errorText="Must be enabled to access the internet"
7+
justify="space-between"
8+
(ionChange)="onChange()"
9+
>
410
Wi-Fi
511
</ion-toggle>
6-
7-
<br />
8-
9-
<ion-button type="submit" size="small">Submit</ion-button>
1012
</form>
1113
```

0 commit comments

Comments
 (0)