BusinessesCoding Community

Livecoding.tv Quiz of the Day: 02/11/2016

Angular.JS Quiz Answer: The key to both is assigning the result of the function to a variable. To cleanup the timeout, just “.cancel()” it: [crayon-5d830e9535889486540772 inline="true" class="language-js hljs"]<span class="hljs-keyword">var</span> customTimeout = $timeout(<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-params">()</span> {</span> <span class="hljs-comment">// arbitrary code</span> }, <span class="hljs-number">55</span>); $timeout.cancel(customTimeout); 12345 [crayon-5d830e9535889486540772 inline="true"  class="language-js hljs"]<span class="hljs-keyword">var</span> customTimeout = $timeout(<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-params">()</span> {</span>  <span class="hljs-comment">// arbitrary code</span>}, <span class="hljs-number">55</span>); $timeout.cancel(customTimeout); [/crayon] The same applies to “$interval()”. To disable a watch, just…
Businesses

AWS vs. Azure

Microsoft Azure comes toe-to-toe with Amazon’s AWS in terms of features, but lacks a few features that Amazon’s AWS offers.Read all facts and details here.