fix(compiler): changed the compiler to set up event listeners and host properties on host view elements
Closes #1584
This commit is contained in:
@ -50,14 +50,9 @@ export class IntegrationTestbed {
|
||||
this.renderer = new DirectDomRenderer(compiler, viewFactory, viewHydrator, shadowDomStrategy);
|
||||
}
|
||||
|
||||
compileRoot(componentId):Promise<ProtoViewDto> {
|
||||
return this.renderer.createHostProtoView(componentId).then( (rootProtoView) => {
|
||||
return this._compileNestedProtoViews(rootProtoView, [
|
||||
new DirectiveMetadata({
|
||||
type: DirectiveMetadata.COMPONENT_TYPE,
|
||||
id: componentId
|
||||
})
|
||||
]);
|
||||
compileRoot(componentMetadata):Promise<ProtoViewDto> {
|
||||
return this.renderer.createHostProtoView(componentMetadata).then( (rootProtoView) => {
|
||||
return this._compileNestedProtoViews(rootProtoView, [componentMetadata]);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user