Advertisement
Guest User

Untitled

a guest
May 5th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. @Inject(Http) public _http: Http
  2.  
  3. 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.
  4.  
  5. @Injectable()
  6. export class UserIds{
  7. private _signature_id:string;
  8. private _role_id:number;
  9. get signature_id():string{
  10. return this._signature_id;
  11. }
  12. set signature_id(id:string){
  13. this._signature_id = id;
  14. }
  15. get role_id():number{
  16. return this._role_id;
  17. }
  18. set role_id(id:number){
  19. this._role_id = id;
  20. }
  21. }
  22.  
  23. @Injectable()
  24. export class HttpRest{
  25. groups;
  26. constructor(
  27. @Inject(Http) public _http: Http,
  28. @Inject(UserIds) public _ids: UserIds
  29. ){}
  30. ...
  31. }
  32.  
  33. ,
  34. @Inject(UserIds) public _ids: UserIds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement