title: I try to connect a test app to the reddit api. But error is occuring and I can't figure out how to fix it
body: <p>I get this error and I don't know why. Thanks in advance.
  <a href="https://i.stack.imgur.com/FKBm1.png" rel="nofollow noreferrer">Picture of the error</a></p>
  
  <p>I think the error is occuring here in my reddit.service.ts folder</p>
  
  <pre><code>import {Injectable} from '@angular/core';
  import {Http} from '@angular/http';
  import 'rxjs/Rx';
  
  @Injectable()
  export class RedditService{
      http: any;
      baseUrl: String;
  
      constructor(http:Http){
          this.http = http;
          this.baseUrl = 'https://www.reddit.com/r';
  
      }
  
      getPosts(category, limit){
          return this.http.get(this.baseUrl+'/'+category+'/top.json?limit='+limit)
              .map(res =&gt; res.json());
      }
  
  }
  </code></pre>