Verifies that there are no pending tasks that need to be flushed. It throws an error if there are still pending tasks.
You can check for a specific type of tasks only, by specifying a
Available task types:
$timeout: Pending timeouts (via
$http: Pending HTTP requests (via
$route: In-progress route transitions (via
$applyAsync: Pending tasks scheduled via $applyAsync.
$evalAsync: Pending tasks scheduled via $evalAsync. These include tasks scheduled via
$evalAsync()indirectly (such as
| taskType |
| || |
The type of tasks to check for.
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 3.0.