var response = this.was.postWizardStart(wi);
response.subscribe(res => { this.zone.run(() => {
this.idWizard = res.headers.get('idWizard');
console.log("OK 200 Server - Idwizard is: " + this.idWizard);
this.ref.detectChanges();
this.emitValue();
this.clientId = this.clientId;
});
},
err => {
console.log(err);
});
constructor( private ref: ChangeDetectorRef,private zone:NgZone
Hello i have a problem with detect changes after post http: the variable
"this.idWizard" is not updated. I used both ngZone and ChangeDetectorRef.
Thank you so much
--
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 angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/b0909cde-f9d3-412a-b0ae-fd02a08f327e%40googlegroups.com.