GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • DirectiveFixture

This view

  • Original page
  • New address

GeezerVison is showing next.angular.dev — DirectiveFixture • Angular

API

    
      class DirectiveFixture<T> extends AbstractFixture<Element> {
}
@paramhostRefComponentRef<unknown>
@paramdirectiveInstanceT
@returnsDirectiveFixture<T>

The instance of the directive class.

Registers a callback that will be invoked when the fixture is destroyed.

@paramcallback() => void
@returnsvoid

The DebugElement associated with the root element of this component.

The native element at the root of the component.

The ElementRef for the element at the root of the component.

Trigger a change detection cycle for the component.

@paramcheckNoChangesboolean
@returnsvoid

Do a change detection run to make sure there were no changes.

@returnsvoid

Set whether the fixture should autodetect changes.

Also runs detectChanges once so that any existing change is detected.

@deprecated

For autoDetect: true, use autoDetectChanges(). We have not seen a use-case for autoDetect: false but changeDetectorRef.detach() is a close equivalent.

@paramautoDetectboolean

Whether to autodetect changes. By default, true.

@returnsvoid

Enables automatically synchronizing the view, as it would in an application.

Also runs detectChanges once so that any existing change is detected.

@returnsvoid

Return whether the fixture is currently stable or has async tasks that have not been completed yet.

@returnsboolean

Get a promise that resolves when the fixture is stable.

This can be used to resume testing after events have triggered asynchronous activity or asynchronous change detection.

@returnsPromise<any>

Get a promise that resolves when the ui state is stable following animations.

@returnsPromise<any>

Trigger component destruction.

@returnsvoid
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.