Just to add, if you are using it as interval, its better to cancel it 
before you initialize it with a null check. Click on the say hello button 
twice before stopping it.


On Saturday, August 11, 2012 8:37:27 PM UTC-7, Dan Doyon wrote:
>
> Sure thing, from the  doc "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."
>
> below is contrived example
>
> http://jsfiddle.net/dandoyon/8qhQ8/2/
>
> --dan
>
>
>
> On Aug 11, 2012, at 8:09 PM, wingy wrote:
>
> Is there a way to cancel a timeout?
>
> Wingy
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "AngularJS" group.
> To post to this group, send email to [email protected] <javascript:>
> .
> To unsubscribe from this group, send email to 
> [email protected] <javascript:>.
> Visit this group at http://groups.google.com/group/angular?hl=en.
>  
>  
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to