Angular 2 中是否存在 notifyWhenNoOutstandingRequests 或等效项?
Does notifyWhenNoOutstandingRequests or an equivalent exist in Angular 2?
我已经看到测试框架(例如 Arquillian)使用它来检测 dom 何时准备好用 Angular 进行检查 1. 是否有等效的方法来执行此操作angular 2?
来自 NgZone
的 onEventDone
应该适用于
Notifies subscribers immediately after the final onTurnDone callback before ending VM event.
This event is useful for validating application state (e.g. in a test).
我已经看到测试框架(例如 Arquillian)使用它来检测 dom 何时准备好用 Angular 进行检查 1. 是否有等效的方法来执行此操作angular 2?
NgZone
的 onEventDone
应该适用于
Notifies subscribers immediately after the final onTurnDone callback before ending VM event.
This event is useful for validating application state (e.g. in a test).