concept $ timeout in category angular

appears as: $timeout
Testing Angular Applications

This is an excerpt from Manning's book Testing Angular Applications.

You don’t need these special services in Angular. Instead, Angular uses a library called Zone.js to run your application’s asynchronous tasks in a context called the Angular zone. Zone.js does this by patching all the browser APIs that create async calls with hooks that track which zone that task is running in. That’s how Angular knows when an async callback started by your app occurs and is able to run change detection after it, which removes the need for $timeout.