diff --git a/src/ng/timeout.js b/src/ng/timeout.js index a32538ee9b0b..08086c908f4d 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(),