How to call an http method without the observable in Angular 2
<p>When I call this function the console.log() works, but the http.delete method never runs, I assume because I haven't subscribed to the observable. </p>

<p>Because I'm calling this from a button on a form, I don't care about returning anything so is there a way to just make the call?</p>

<pre><code>  deleteCompany(id) { 
      console.log('from data service: ', id);
      this.http.delete(this.url + 'Companies/' + id + '?' + this.token).map(res =&gt; res.json());
   }
</code></pre>

<p><strong>Edit:</strong>
I went with this instead. Is this the correct way to handle this?</p>

<pre><code>import 'rxjs/add/operator/toPromise';
...
return this.http.delete(this.url + 'Companies/' + id + '?' + this.token).toPromise();
</code></pre>