diff --git a/modules/angular2/src/core/compiler/compiler.js b/modules/angular2/src/core/compiler/compiler.js index 09a046f6c7..d38a52b7fb 100644 --- a/modules/angular2/src/core/compiler/compiler.js +++ b/modules/angular2/src/core/compiler/compiler.js @@ -150,11 +150,10 @@ export class Compiler { // TODO(vicb): union type return ProtoView or Promise _compileTemplate(template: Template, tplElement, component: Type) { var pipeline = new CompilePipeline(this.createSteps(component, template)); - var compilationCtxtDescription = stringify(this._reader.read(component).type); var compileElements; try { - compileElements = pipeline.process(tplElement, compilationCtxtDescription); + compileElements = pipeline.process(tplElement, stringify(component)); } catch(ex) { return PromiseWrapper.reject(ex); }