Użyj PROMIS z datą Angular
lastUpdate: Promise<Date> = new Promise(
(resolve, reject) => {
const date = new Date();
setTimeout(
() => {
resolve(date);
}, 2000
);
}
);
BlueMoon