ComponentFixture

export class ComponentFixture

exported from angular2/testing defined in angular2/src/testing/test_component_builder.ts (line 26)

Fixture for debugging and testing a component.

Members

debugElement : DebugElement

The DebugElement associated with the root element of this component.

componentInstance : any

The instance of the root component class.

nativeElement : any

The native element at the root of the component.

detectChanges() : void

Trigger a change detection cycle for the component.

destroy() : void

Trigger component destruction.