You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
If I have something like this {{day | date:'mediumDate'}} where day could be an empty string '', angular is supposed to produce nothing for invalid values. However, I see undefined NaN, NaN, which goes against Angular's consistent "if the input is invalid, Angular won't throw errors, it will just output nothing." Is that not the case for the date filter?
How can I still get an empty string '' to be outputted? Do I have to add a conditional inside the expression?
The text was updated successfully, but these errors were encountered:
If I have something like this
{{day | date:'mediumDate'}}
whereday
could be an empty string''
, angular is supposed to produce nothing for invalid values. However, I seeundefined NaN, NaN
, which goes against Angular's consistent "if the input is invalid, Angular won't throw errors, it will just output nothing." Is that not the case for the date filter?How can I still get an empty string
''
to be outputted? Do I have to add a conditional inside the expression?The text was updated successfully, but these errors were encountered: