From 6eb2739b2b017726e0293f070c1333ad58ca7120 Mon Sep 17 00:00:00 2001 From: Uri Goldshtein Date: Fri, 27 Sep 2013 17:28:41 +0200 Subject: [PATCH] docs($timeout): add a $timeout example (gxlcl's example) --- src/ng/timeout.js | 88 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/src/ng/timeout.js b/src/ng/timeout.js index a32538ee9b0..08086c908f4 100644 --- a/src/ng/timeout.js +++ b/src/ng/timeout.js @@ -31,6 +31,94 @@ function $TimeoutProvider() { * will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block. * @returns {Promise} Promise that will be resolved when the timeout is reached. The value this * promise will be resolved with is the return value of the `fn` function. + * + * @example + + + + +
+
+ Date format:
+ Current time is: +
+ Blood 1 : {{blood_1}} + Blood 2 : {{blood_2}} + + + +
+
+ +
+
*/ function timeout(fn, delay, invokeApply) { var deferred = $q.defer(),