fix(compiler): fix PR 13322 (#13331)

This commit is contained in:
Victor Berchet 2016-12-09 11:22:44 -08:00 committed by GitHub
parent c8baf51f4f
commit 4022173d1e
1 changed files with 2 additions and 3 deletions

View File

@ -213,9 +213,8 @@ export class JitCompiler implements Compiler {
const compMeta = this._metadataResolver.getDirectiveMetadata(compType);
assertComponent(compMeta);
class HostClass {
static overriddenName = `${identifierName(compMeta.type)}_Host`;
}
const HostClass = function HostClass() {};
(<any>HostClass).overriddenName = `${identifierName(compMeta.type)}_Host`;
const hostMeta = createHostComponentMeta(HostClass, compMeta);
compiledTemplate = new CompiledTemplate(