12. Guide to Promises in TypeScript
Activity 12.01: Building a Promise App
Solution:
- We can get started the same way we started building our API from the sample from GitHub:
npm i
The only dependencies we're using here are
http-server
to power our web application andtypescript
to transpile our code. Now that our project is set up, let's quickly create anindex.html
file:<html> <head> <title>The TypeScript Workshop - Activity 12.1</title> <link href="styles.css" rel="stylesheet"></link> </head> <body> <input type="text" placeholder="What promise will you make?" id="promise-input"> <button id="promise-save">save</button> <div> <table...