Some IDEAs (latest Intellij) will complain when passing a number to the pipe (since its transform method accepts only a string)
Date's constructor does support passing a number, so in runtime this works. It also passes compilation by the angular template compiler, the only issue is IDEA warning and future risk angular template compiler may fail the compilation based on type checking
Some IDEAs (latest Intellij) will complain when passing a number to the pipe (since its transform method accepts only a string)
Date's constructor does support passing a number, so in runtime this works. It also passes compilation by the angular template compiler, the only issue is IDEA warning and future risk angular template compiler may fail the compilation based on type checking
Suggested fix in pull request: https://github.com/AndrewPoyntz/time-ago-pipe/pull/28