Use promes com data angular

lastUpdate: Promise<Date> = new Promise(
  (resolve, reject) => {
    const date = new Date();
    setTimeout(
      () => {
        resolve(date);
      }, 2000
    );
  }
);
BlueMoon