I tried injecting one service in another using DI of angular 2
import {HttpService} from \'scripts/httpService\';
export class CurrentBlog{
constructor(
In angular 2 you need to make the angular injector aware of your service. To do this you need to mark the service as Injectable.
HttpService
import {Injectable} from 'angular2/angular2';
@Injectable()
export class HttpService{
...
}
CurrentBlog
import {HttpService} from 'scripts/httpService';
import {Inject} from 'angular2/core';
export class CurrentBlog{
constructor(public httpService:HttpService){}
}