title: Angular 2 get value from url with promise and await
body: <p>So i'm trying to get the the value from the url and i want to do this with promise and async/await. But when i run this in both chrome and opera it just stands and wait on that point. 
  Anyone got that can point me in the right direction or am i doing something wrong ? </p>
  
  <p>My component implements : implements OnInit </p>
  
  <p>Constructor : </p>
  
  <pre><code>constructor(private route: ActivatedRoute, 
              private zone : NgZone
              ) 
              {
  
              }
  </code></pre>
  
  <p>The imports : </p>
  
  <pre><code>import { Component, OnInit, NgZone } from '@angular/core';
  import { ActivatedRoute } from '@angular/router';
  import { Observable } from 'rxjs/Rx';
  </code></pre>
  
  <p>Methods: </p>
  
  <pre><code>async ngOnInit() 
  {
      var Id : string = await this.getIdFromUrl(); 
  }
  
  
  getIdFromUrl() : Promise&lt;string&gt; 
      {
          return this.route.params.map(params =&gt; 
          {   
              return params['id']; 
          }).toPromise();  
      }
  </code></pre>