Skip to content

Commit

Permalink
demo(slide-toggle): fix slide-toggle required demo (#3793)
Browse files Browse the repository at this point in the history
Fixes the slide-toggle required demo, where the component will be compared with the native required state.

Basically in the demo, the form should be validated native and should show the browsers popup if the slide-toggle is required.
  • Loading branch information
devversion authored and tinayuangao committed Mar 31, 2017
1 parent a225b77 commit 724170d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/demo-app/slide-toggle/slide-toggle-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<p>Example where the slide toggle is required inside of a form.</p>

<form #form="ngForm" (ngSubmit)="onFormSubmit()">
<form #form="ngForm" (ngSubmit)="onFormSubmit()" ngNativeValidate>

<md-slide-toggle name="slideToggle" required ngModel>
Slide Toggle
Expand Down

0 comments on commit 724170d

Please sign in to comment.