2015-07-27 22:12:30 -07:00
p.location-badge.
exported from <a href='../test'>angular2/test</a>
2015-09-01 13:55:47 -07:00
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.36/modules/angular2/src/test_lib/test_component_builder.ts#L43-L152">angular2/src/test_lib/test_component_builder.ts (line 43)</a>
2015-07-27 22:12:30 -07:00
:markdown
2015-09-01 13:55:47 -07:00
This module is used for writing tests for applications written in Angular.
2015-07-27 22:12:30 -07:00
2015-09-01 13:55:47 -07:00
This module is not included in the `angular2` module; you must import the test module explicitly.
2015-07-28 13:28:47 -07:00
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation Injectable
pre.prettyprint
code.
@Injectable()
2015-07-27 22:12:30 -07:00
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(injector: Injector)
:markdown
.l-sub-section
h3 overrideTemplate
pre.prettyprint
code.
overrideTemplate(componentType: Type, template: string)
:markdown
2015-09-01 13:55:47 -07:00
Overrides only the html of a <a href='../metadata/ComponentMetadata-class.html'><code>ComponentMetadata</code></a>.
All the other properties of the component's <a href='../metadata/ViewMetadata-class.html'><code>ViewMetadata</code></a> are preserved.
2015-07-27 22:12:30 -07:00
.l-sub-section
h3 overrideView
pre.prettyprint
code.
2015-09-01 13:55:47 -07:00
overrideView(componentType: Type, view: ViewMetadata)
2015-07-27 22:12:30 -07:00
:markdown
2015-09-01 13:55:47 -07:00
Overrides a component's <a href='../metadata/ViewMetadata-class.html'><code>ViewMetadata</code></a>.
2015-07-27 22:12:30 -07:00
.l-sub-section
h3 overrideDirective
pre.prettyprint
code.
overrideDirective(componentType: Type, from: Type, to: Type)
:markdown
2015-09-01 13:55:47 -07:00
Overrides the directives from the component <a href='../metadata/ViewMetadata-class.html'><code>ViewMetadata</code></a>.
2015-07-27 22:12:30 -07:00
.l-sub-section
h3 createAsync
pre.prettyprint
code.
createAsync(rootComponentType: Type)
:markdown
Builds and returns a RootTestComponent.