I need to pass data from Service1 to Service2
Service1
@Injectable()
export class Service1 {
...
}
similar for Service2
the only way I found to make Service1 communicate with Service 2 is using window['var'] (set in Service1, read in Service2)
I think this is more a "hack" than a real solution but injecting a 3rd service doesn't work.
Another solution is using localStorage but yet doesn't seem ideal to me.
Any clue?