Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Inject(Http) public _http: Http
- EXCEPTION: Cannot resolve all parameters for 'HttpRest'(Http @Inject(Http), undefined @Inject(undefined)). Make sure that all the parameters are decorated with Inject or have valid type annotations and that 'HttpRest' is decorated with Injectable.
- @Injectable()
- export class UserIds{
- private _signature_id:string;
- private _role_id:number;
- get signature_id():string{
- return this._signature_id;
- }
- set signature_id(id:string){
- this._signature_id = id;
- }
- get role_id():number{
- return this._role_id;
- }
- set role_id(id:number){
- this._role_id = id;
- }
- }
- @Injectable()
- export class HttpRest{
- groups;
- constructor(
- @Inject(Http) public _http: Http,
- @Inject(UserIds) public _ids: UserIds
- ){}
- ...
- }
- ,
- @Inject(UserIds) public _ids: UserIds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement