$timeout.cancel()

cancel([promise]);

Cancels a task associated with the promise. As a result of this, the promise will be resolved with a rejection.

Parameters

Param Type Details
promise
(optional)
Promise

Promise returned by the $timeout function.

Returns

boolean

Returns true if the task hasn't executed yet and was successfully canceled.

doc_AngularJS
2016-03-29 16:10:51
Comments
Leave a Comment

Please login to continue.