2015-04-19 13:53:18 -07:00
2015-04-22 08:06:51 -07:00
p.location-badge.
2015-06-01 22:51:00 -07:00
exported from <a href='../test'>angular2/test</a>
2015-06-19 12:08:22 -07:00
defined in <a href="https://github.com/angular/angular/tree/3a0410a/modules/angular2/src/test_lib/test_bed.ts#L22-L106">angular2/src/test_lib/test_bed.ts (line 22)</a>
2015-04-19 13:53:18 -07:00
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
2015-04-20 13:57:43 -07:00
constructor(injector: Injector)
2015-04-19 13:53:18 -07:00
:markdown
2015-06-01 22:51:00 -07:00
2015-04-19 13:53:18 -07:00
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 overrideView
2015-04-19 13:53:18 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
overrideView(component: Type, template: View)
2015-04-19 13:53:18 -07:00
:markdown
2015-05-01 06:37:29 -07:00
2015-06-19 12:08:22 -07:00
Overrides the <a href='../annotations/View-var.html'><code>View</code></a> of a <a href='../annotations/Component-var.html'><code>Component</code></a>.
2015-04-19 13:53:18 -07:00
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 setInlineTemplate
2015-04-19 13:53:18 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
setInlineTemplate(component: Type, html: string)
2015-04-19 13:53:18 -07:00
:markdown
2015-05-01 06:37:29 -07:00
2015-06-19 12:08:22 -07:00
Overrides only the html of a <a href='../annotations/Component-var.html'><code>Component</code></a>.
All the other propoerties of the component's <a href='../annotations/View-var.html'><code>View</code></a> are preserved.
2015-04-19 13:53:18 -07:00
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 overrideDirective
2015-04-19 13:53:18 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
overrideDirective(component: Type, from: Type, to: Type)
2015-04-19 13:53:18 -07:00
:markdown
2015-05-01 06:37:29 -07:00
2015-06-19 12:08:22 -07:00
Overrides the directives from the component <a href='../annotations/View-var.html'><code>View</code></a>.
2015-04-19 13:53:18 -07:00
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 createView
2015-04-19 13:53:18 -07:00
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
createView(component: Type, {context = null, html = null}?: {context?: any,
html?: string})
2015-04-19 13:53:18 -07:00
:markdown
2015-05-01 06:37:29 -07:00
2015-06-19 12:08:22 -07:00
Creates an `AppView` for the given component.
2015-06-01 22:51:00 -07:00
2015-06-19 12:08:22 -07:00
Only either a component or a context needs to be specified but both can be provided for
advanced use cases (ie subclassing the context).
2015-04-19 13:53:18 -07:00