-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core/forms): prints date even when formcontrol changes
- Loading branch information
1 parent
e211733
commit 1a61104
Showing
2 changed files
with
25 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
<span *ngIf="date|async as dateVal">{{dateVal}}</span> | ||
<ng-container *ngIf="control|async as ctrl"> | ||
|
||
<span *ngIf="date|async as dateVal; else dateCtrl">{{dateVal}}</span> | ||
<ng-template #dateCtrl> | ||
{{formatDateField(ctrl.value)}} | ||
</ng-template> | ||
</ng-container> |
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