Skip to main content
cngx-src documentation

TransitionDoneHandle

Interface

projects/core/utils/transition.util.ts

Import#

import { TransitionDoneHandle } from '@cngx/core/utils'

Description#

Handle for a pending onTransitionDone wait.

flush completes the wait immediately: it removes the listener, clears the fallback timer and invokes onDone (once - later calls and late events are no-ops). cancel tears the wait down silently: listener and timer go away and onDone never fires. Call cancel from a destroy hook so a directive torn down mid-transition does not receive a late onDone from the fallback timer.

Index#

Methods#

cancel#void

Tear down silently: remove the listener and timer without invoking onDone.

flush#void

Complete now: remove the listener, clear the timer, invoke onDone once.