Edit: Problem solved. Just forgot the @Injected() decorator
As many of you I’m updating my App to Rc0.
My App calls a REST-Api and for the basic calls I have implemented a communication provider that holds the http client.
Its constructor looks like this:
constructor(public http: Http, public varService: VarService) {
The detailed provider that extends the communication provider looks like this:
import { Component, ViewChild } from '@angular/core';
import { Http } from '@angular/http';
import { CommunicationService } from './communication.service';
import { VarService } from './var.service';
export class NewsService extends CommunicationService {
constructor(http: Http, varService: VarService) {
super(http, varService);
super.init("news");
}
}
It worked well for Beta 11 and before but since RC0 needs to init providers globally in the app.module.ts I get this error:
Can’t resolve all parameters for NewsService: (?, ?).
Do you have any clue how to fix this issue?
Thank you
[/quote]
**
As many of you I’m updating my App to Rc0.
My App calls a REST-Api and for the basic calls I have implemented a communication provider that holds the http client.
Its constructor looks like this:
constructor(public http: Http, public varService: VarService) {
The detailed provider that extends the communication provider looks like this:
import { Component, ViewChild } from '@angular/core';
import { Http } from '@angular/http';
import { CommunicationService } from './communication.service';
import { VarService } from './var.service';
export class NewsService extends CommunicationService {
constructor(http: Http, varService: VarService) {
super(http, varService);
super.init("news");
}
}
It worked well for Beta 11 and before but since RC0 needs to init providers globally in the app.module.ts I get this error:
Can’t resolve all parameters for NewsService: (?, ?).
Do you have any clue how to fix this issue?
Thank you