Event Bubbling or Event Capturing?

Event propagation: There are two ways of event propagation in the HTML DOM, bubbling and capturing. Event propagation is a way of defining the element order when an event occurs. If you have a <p> element inside a <div> element, and the user clicks on the <p> element, which element's "click" event should be handled … Continue reading Event Bubbling or Event Capturing?

Advertisements

Promises and $q all examples ***

https://github.com/kriskowal/q https://gist.github.com/jeffcogswell/8257755 https://github.com/kriskowal/q/wiki/Examples-Gallery https://fdietz.github.io/recipes-with-angular-js/consuming-external-services/deferred-and-promise.html https://fdietz.github.io/recipes-with-angular-js/consuming-external-services/deferred-and-promise.html https://gist.github.com/Heshyo/9364276#file-q_example-js