101 lines
1.7 KiB
Plaintext
101 lines
1.7 KiB
Plaintext
|
|
||
|
p.
|
||
|
<span class="location-badge">exported from <a href="/angular2/test">angular2/test</a></span>
|
||
|
defined in <a href="https://github.com/angular/angular/tree/master/modules/angular2/src/test_lib/test_bed.js#L24">angular2/src/test_lib/test_bed.js (line 24)</a>
|
||
|
|
||
|
:markdown
|
||
|
|
||
|
.l-main-section
|
||
|
h2 Members
|
||
|
.l-sub-section
|
||
|
h3 constructor
|
||
|
|
||
|
|
||
|
pre.prettyprint
|
||
|
code.
|
||
|
(injector: Injector)
|
||
|
|
||
|
|
||
|
|
||
|
:markdown
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
.l-sub-section
|
||
|
h3 createView
|
||
|
|
||
|
|
||
|
pre.prettyprint
|
||
|
code.
|
||
|
(component: Type, {context = null, html = null}: {context:any, html: string} = {}, [object Object], [object Object], [object Object])
|
||
|
|
||
|
|
||
|
|
||
|
:markdown
|
||
|
Creates a [AppView] for the given component.
|
||
|
|
||
|
Only either a component or a context needs to be specified but both can be provided for
|
||
|
advanced use cases (ie subclassing the context).
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
.l-sub-section
|
||
|
h3 overrideDirective
|
||
|
|
||
|
|
||
|
pre.prettyprint
|
||
|
code.
|
||
|
(component: Type, from: Type, to: Type, [object Object], [object Object], [object Object])
|
||
|
|
||
|
|
||
|
|
||
|
:markdown
|
||
|
Overrides the directives from the component [View].
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
.l-sub-section
|
||
|
h3 overrideView
|
||
|
|
||
|
|
||
|
pre.prettyprint
|
||
|
code.
|
||
|
(component: Type, template: View, [object Object], [object Object])
|
||
|
|
||
|
|
||
|
|
||
|
:markdown
|
||
|
Overrides the [View] of a [Component].
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
.l-sub-section
|
||
|
h3 setInlineTemplate
|
||
|
|
||
|
|
||
|
pre.prettyprint
|
||
|
code.
|
||
|
(component: Type, html: string, [object Object], [object Object])
|
||
|
|
||
|
|
||
|
|
||
|
:markdown
|
||
|
Overrides only the html of a [Component].
|
||
|
All the other propoerties of the component's [View] are preserved.
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|