mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
demo(slide-toggle): fix slide-toggle required demo (#3793)
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.
This commit is contained in:
committed by
tinayuangao
parent
a225b77fc4
commit
724170df24
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user