title: Can't resolve all parameters for PlatformService: ([object Object], ?, [object Object])
body: <p>I have two services: <code>PlatformService</code> and <code>AccountService</code>:</p>
  
  <pre><code>import {Http} from '@angular/http';
  import {AccountService} from "./account.service";
  import {ToastService} from "./toast.service";
  @Injectable()
  export class PlatformService {
    constructor(
      private http: Http,
      private accountSvc: AccountService,
      private toastSvc: ToastService
    ) {}
    //...
  }
  
  
  import {Http} from "@angular/http";
  import {ToastService} from "./toast.service";
  @Injectable()
  export class AccountService {
    constructor(
      private http: Http,
      private toastService: ToastService
    ){}
    //...
  }
  </code></pre>
  
  <p>And this is the <code>providers</code> in <code>app.module.ts</code>:</p>
  
  <pre><code>providers: [
    StatusBar,
    SplashScreen,
    ToastService,
    AccountService,
    PlatformService,
    SocketService,
    ModelService,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
  </code></pre>
  
  <p>I want to inject <code>accountService</code> into my <code>platformService</code>, but I got the following error:</p>
  
  <blockquote>
    <p>Can't resolve all parameters for PlatformService: ([object Object], ?, [object Object]).</p>
  </blockquote>
  
  <p>I don't think there is a circular dependency in my code, maybe it's because <code>platformService</code> and <code>accountService</code> both inject <code>http</code> and <code>toastService</code>?</p>
  
  <p>After I commented <code>private accountSvc: AccountService,</code> in the constructor of <code>PlatformService</code>, this error disappeared.</p>