Issue
I have template using date pipe like this
{{value | date: 'dd/MM/yyyy'}}
this value is null
How to handle this if my value null i got string 'object not match'?
Solution
{{ (value !== null) ? (value | date: 'dd/MM/yyyy') : "" }}
Answered By - Bharat Chauhan
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.