title: Angular 2 wait/timeout before executing a command
body: <p>I have the following loop:</p>
  
  <pre><code>for (let i = 0; i &lt; data.numChanges; i++) { 
                      console.log("Try numebr #" + i);
                      this.enemy.image = 'images/items/glasses/glasses.png;
                      //Wait 2 seconds, and show this image:
                      this.enemy.image = oldImage;
                      //Wait 1 second before processing to the next loop item
                  }
  </code></pre>
  
  <p>What code do I need to place where the comments located (see code above) in order to make the app "wait" before executing the given lines of code?</p>
  
  <p>This is what I need to do:</p>
  
  <ul>
  <li>Wait 2 Seconds after the old image has changed (first comment)</li>
  <li>Wait 1 Second at the end of the loop (second comment)</li>
  </ul>