Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

use promis with date angular

lastUpdate: Promise<Date> = new Promise(
  (resolve, reject) => {
    const date = new Date();
    setTimeout(
      () => {
        resolve(date);
      }, 2000
    );
  }
);
Source by openclassrooms.com #
 
PREVIOUS NEXT
Tagged: #promis #date #angular
ADD COMMENT
Topic
Name
5+8 =