$timeout Service in AngularJS — a practical guide to AngularJS $timeout with clear examples you can reuse in real projects.
AngularJS Tutorial Series (43/99). Prefer one article? Read the complete AngularJS tutorial.
Short description
Prefer $timeout over raw setTimeout so bindings update.
$timeout
$timeout(function () {
vm.saved = false;
}, 2000);