-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(datepicker): fix datepickers cypress test (#4771)
- Loading branch information
Showing
2 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 6 additions & 7 deletions
13
demo/src/app/components/+datepicker/demos/reactive-forms/reactive-forms.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
<form [formGroup]="myForm"> | ||
<div class="row"> | ||
<div class="col-xs-12 col-12 col-sm-6 col-md-4 form-group"> | ||
<input type="text" class="form-control" placeholder="Datepicker" bsDatepicker formControlName="date" /> | ||
<input type="text" class="form-control mb-3" placeholder="Datepicker" bsDatepicker formControlName="date" /> | ||
<pre *ngIf="myForm.value.date" class="code-preview">{{myForm.value.date | date}}</pre> | ||
</div> | ||
<div class="col-xs-12 col-12 col-sm-6 col-md-4 form-group"> | ||
<input type="text" class="form-control" placeholder="Daterangepicker" bsDaterangepicker formControlName="range" /> | ||
<input type="text" class="form-control mb-3" | ||
placeholder="Daterangepicker" bsDaterangepicker formControlName="range" /> | ||
<pre *ngIf="myForm.value.range" | ||
class="code-preview">from {{myForm.value.range[0] | date}} to {{myForm.value.range[1] | date}}</pre> | ||
</div> | ||
</div> | ||
</form> | ||
<div class="row"> | ||
<div class="col-xs-12 col-md-12"> | ||
<pre class="code-preview">{{myForm.value | json}}</pre> | ||
</div> | ||
</div> | ||
|
||
|