Hello Sander,

for the closure way I have to pass the closure everytime I will need it 
right?

For attaching data to the zone itself, I have the same issue as before, 
that I need to retrieve the current zone instance.
I found a way how to get the current Zone instance, but I don't know if 
that is the recommended way.
declare var Zone: any;

@Injectable()
export class LogAbcService {
  public log(): void {
    console.log(Zone.current._properties.test);
  }
}



It should not be used as storage, it is just a debug information for 
logging purposal.


Best Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to