off(event, [container], [callback]);
Deregisters an event listener based on the event which has been associated with the provided element. This method can be used in three different ways depending on the arguments:
// remove all the animation event listeners listening for `enter` $animate.off('enter'); // remove all the animation event listeners listening for `enter` on the given element and its children $animate.off('enter', container); // remove the event listener function provided by `callback` that is set // to listen for `enter` on the given `container` as well as its children $animate.off('enter', container, callback);
Parameters
Param | Type | Details |
---|---|---|
event | string | the animation event (e.g. enter, leave, move, addClass, removeClass, etc...) |
container (optional) | DOMElement | the container element the event listener was placed on |
callback (optional) | Function= | the callback function that was registered as the listener |
Please login to continue.