[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/cdk/testing/AutoChangeDetectionStatus [Back]  [Original]

AutoChangeDetectionStatus Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/cdk/testing

AutoChangeDetectionStatus

interface

The status of the test harness auto change detection. If not diabled test harnesses will automatically trigger change detection after every action (such as a click) and before every read (such as getting the text of an element).

On this page

    arrow_upward_alt Back to the top

    API

        
          interface AutoChangeDetectionStatus {  isDisabled: boolean;  onDetectChangesNow?: (() => void) | undefined;}
        
        

    isDisabled

    boolean

    Whether auto change detection is disabled.

    onDetectChangesNow

    (() => void) | undefined

    An optional callback, if present it indicates that change detection should be run immediately, while handling the status change. The callback should then be called as soon as change detection is done.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page