title: Can't resolve all parameters for [...]
body: <p>Looks like a pretty common problem. I want to use Service1 in Service2 and I get the exception  </p>
  
  <blockquote>
    <p>Error: Can't resolve all parameters for ILIASRestProvider: (Http, ?).</p>
  </blockquote>
  
  <p>even though in other Components Service2 seems to be injectable. And I think I have everything together:</p>
  
  <ul>
  <li>@Injectable at the Service1 and Service2</li>
  <li>tsconfig.json emitDecoratorMetadata set to true</li>
  <li>Registered Service1 and Service2 in the Providers part of the ngModule</li>
  </ul>
  
  <p>If it matters at all: I'm building an Ionic 2 RC0 Application. Here are the important files:</p>
  
  <p>app.module.ts</p>
  
  <pre><code>import { NgModule } from '@angular/core';
  import { IonicApp, IonicModule } from 'ionic-angular';
  import { MyApp } from './app.component';
  import {AppConfig} from "../config/app-config";
  import {ConnectionService} from "../services/ilias-app.service";
  import {ILIASRestProvider} from "../providers/ilias-rest.provider";
  import {MigrationsService} from "../services/migrations.service";
  import {FooterToolbarService} from "../services/footer-toolbar.service";
  import {ObjectListPage} from "../pages/object-list/object-list";
  import {FavoritesPage} from "../pages/favorites/favorites";
  import {NewObjectsPage} from "../pages/new-objects/new-objects";
  import {SettingsPage} from "../pages/settings/settings";
  import {InfoPage} from "../pages/info/info";
  import {LogoutPage} from "../pages/logout/logout";
  import {SynchronizationService} from "../services/synchronization.service";
  import {DataProvider} from "../providers/data-provider.provider";
  import {FileService} from "../services/file.service";
  import {DataProviderFileObjectHandler} from "../providers/handlers/file-object-handler";
  import {TranslatePipe} from "ionic-angular/index";
  import {FileSizePipe} from "../pipes/fileSize.pipe";
  import {HttpModule, Http} from '@angular/http';
  import {TranslateModule} from 'ng2-translate/ng2-translate';
  import {TranslateLoader} from "ng2-translate/src/translate.service";
  import {TranslateStaticLoader} from "ng2-translate/src/translate.service";
  
  @NgModule({
    declarations: [
      MyApp,
      ObjectListPage,
      FavoritesPage,
      NewObjectsPage,
      SettingsPage,
      InfoPage,
      LogoutPage,
      FileSizePipe,
      TranslatePipe
    ],
    imports: [
      HttpModule,
      IonicModule.forRoot(MyApp, {prodMode: window.hasOwnProperty('cordova')}),
      TranslateModule.forRoot({
        provide: TranslateLoader,
        useFactory: (http: Http) =&gt; new TranslateStaticLoader(http, '/assets/i18n', '.json'),
        deps: [Http]
      })
    ],
    bootstrap: [IonicApp],
    entryComponents: [
      MyApp,
      ObjectListPage,
      FavoritesPage,
      NewObjectsPage,
      SettingsPage,
      InfoPage,
      LogoutPage
    ],
    providers: [
      AppConfig,
      ConnectionService, //&lt;-----------------------
      MigrationsService,
      ILIASRestProvider, //&lt;-------------------------
      FooterToolbarService,
      DataProvider,
      FileService,
      SynchronizationService,
      DataProviderFileObjectHandler
    ]
  })
  export class AppModule {}
  </code></pre>
  
  <p>ilias-rest.provider.ts</p>
  
  <pre><code>@Injectable()
  export class ILIASRestProvider {
  
      public constructor(private http:Http, public app:ConnectionService) {
      }
      ...
  }
  </code></pre>
  
  <p>ilias-app.service.ts</p>
  
  <pre><code>@Injectable()
  export class ConnectionService {
  
      ...
  
      constructor(public _config:AppConfig) {
          this._database = SQLiteDatabaseService.instance();
      }
  
      ...
  }
  </code></pre>
  
  <p>app-config.ts</p>
  
  <pre><code>@Injectable()
  export class AppConfig {
  
      protected data:any = {};
  
      constructor(public http:Http) {
      }
  
      ...
  }
  </code></pre>
  
  <p>ionic setup</p>
  
  <pre><code>Your system information:
  
  Cordova CLI: 5.4.1
  Ionic Framework Version: 2.0.0-rc.0
  Ionic CLI Version: 2.1.0
  Ionic App Lib Version: 2.1.0-beta.1
  OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS 
  Node Version: v6.6.0
  </code></pre>