Revert "fix(compiler): fix transpiled ES5 code (#13322)"

This reverts commit 4398056146.
This commit is contained in:
Victor Berchet 2016-12-08 17:53:58 -08:00
parent 61d7c1e0b3
commit 4e3d58a792
1 changed files with 4 additions and 4 deletions

View File

@ -213,11 +213,11 @@ export class JitCompiler implements Compiler {
const compMeta = this._metadataResolver.getDirectiveMetadata(compType);
assertComponent(compMeta);
const hostClass = {
overriddenName: `${identifierName(compMeta.type)}_Host`,
};
class HostClass {
static overriddenName = `${identifierName(compMeta.type)}_Host`;
}
const hostMeta = createHostComponentMeta(hostClass, compMeta);
const hostMeta = createHostComponentMeta(HostClass, compMeta);
compiledTemplate = new CompiledTemplate(
true, compMeta.selector, compMeta.type, hostMeta, ngModule, [compMeta.type]);
this._compiledHostTemplateCache.set(compType, compiledTemplate);