I have implemented a Vue filter called timeconverter
to alter the date format of a string. My goal is to verify if the outcome of {{ time | timeconverter }}
is before the present time.
Is there a way to utilize JavaScript functions on the output generated by the filter?
For instance:
{{ time | timeconverter }}.length()
OR:
{{ time | timeconverter }} > Date.now()
I aim to exhibit a div
(shown below) based on whether {{ time | timeconverter }}
is greater than the current time.
<div>
{{ time | timeconverter }}<span>min</span>
</div>