iscBento/iscBento.component.js
/**
     * $onDestroy() is a hook that is called when its containing scope is destroyed.
     * We can use this hook to release external resources, watches and event handlers.
     */
$onDestroy() is a hook that is called when its containing scope is destroyed.
We can use this hook to release external resources, watches and event handlers.
$onDestroy () is a hook that is called when its containing scope is destroyed . We can use this hook to release external resources watches and event handlers .
function $onDestroy() {
      log.debug( '$onDestroy' );
      _.forEach( listeners, function( off ) {
        off();
      } );
    }
function $onDestroy ( ) { log . debug ( '$onDestroy' ) ; _ . forEach ( listeners , function ( off ) { off ( ) ; } ) ; }
$onDestroy() is a hook that is called when its containing scope is destroyed.
$onDestroy () is a hook that is called when its containing scope is destroyed .