Hi all,
I need to update a pipe regularly as “fromNow” changes constantly:
export class MomentTillEndPipe implements PipeTransform
{
transform (value: string)
{
setInterval(() => {
let m = moment(value).fromNow(true);
console.log(m);
return m;
},3000);
}
}
The correct - and updated value - is visible in the console, but it is not displayed in my view at all.
Does anyone have a clue why? Is there any other way to solve the issue?
Thanks for you help!
martin