title: No provider for HttpService
body: <p>When I run the following project I get the error:</p>
  
  <blockquote>
    <p>No provider for HttpService! (AppComponent -> HttpService)</p>
  </blockquote>
  
  <p>Can someone help me please?</p>
  
  <p>my AppComponent:</p>
  
  <pre><code>    import {Component} from 'angular2/core';
  import {HttpService} from "./htttp.service";
  
  @Component({
    selector: 'my-app',
    template: `
    &lt;div&gt;
    &lt;div class="input"&gt;
    &lt;label for="title"&gt;Title&lt;/label&gt;
    &lt;input type="text" id="title" #title&gt;
    &lt;/div&gt;
      &lt;div class="body"&gt;
    &lt;label for="body"&gt;Body&lt;/label&gt;
    &lt;input type="text" id="body" #body&gt;
    &lt;/div&gt;
      &lt;div class="user-id"&gt;
    &lt;label for="user-id"&gt;User ID&lt;/label&gt;
    &lt;input type="text" id="user-id" #userid&gt;
    &lt;/div&gt;
    &lt;button (click)="onPost(title.value, body.value, userid.value)"&gt;Post Data&lt;/button&gt;
    &lt;button (click)="onGetPosts()"&gt;Get All Posts&lt;/button&gt;
    &lt;p&gt;Response: {{response | json}}&lt;/p&gt;
    &lt;/div&gt;,
  
    providers: [HttpService]
        `,
  })
  export class AppComponent {
    response: string;
  
    constructor(private _httpService: HttpService){}
    onGetPosts(){
      this._httpService.getPosts().subscribe(
        response =&gt; this.response=response,
        error =&gt; console.log(error)
      )
    }
  
  }
  </code></pre>
  
  <p>HttpService: </p>
  
  <pre><code>import {Injectable} from 'angular2/core';
  import {Http} from "angular2/http";
  import {Observable} from "rxjs/Observable";
  import 'rxjs/Rx';
  
  @Injectable()
  
  export class HttpService{
    constructor(private _http:Http){}
  
    getPosts():Observable&lt;any&gt;{
      return this._http.get('http://jsonplaceholder.typicode.com/posts').map(res =&gt; res.json());
    }
  
  }
  </code></pre>
  
  <p>and boot.ts:</p>
  
  <pre><code>import {bootstrap} from 'angular2/platform/browser';
  import {AppComponent} from "./app.component";
  import {HTTP_PROVIDERS} from  "angular2/http";
  
  bootstrap(AppComponent, [HTTP_PROVIDERS]);
  </code></pre>
  
  <p>Where is the problem?</p>