Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Implement the App.tick when editing component properties #181

Closed
sumitarora opened this issue Mar 8, 2016 · 0 comments · Fixed by #184
Closed

Implement the App.tick when editing component properties #181

sumitarora opened this issue Mar 8, 2016 · 0 comments · Fixed by #184
Assignees

Comments

@sumitarora
Copy link
Member

Implement the App.tick when editing component properties ( angular/angular#7045)

var ngRootEl = window.getAllAngularRootElements()[0];
var rootNgProbe = window.ng.probe(ngRootEl);
var appRef = rootNgProbe.inject(window.ng.probe.coreTokens.ApplicationRef);
appRef.tick();

var ngZone = rootNgProbe.inject(window.ng.probe.coreTokens.NgZone);
ngZone.onEventDone.subscribe(function() { console.log('Angular did some work'); });
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant