parent
04abf2629b
commit
bcf4a96a84
@ -150,11 +150,10 @@ export class Compiler {
|
|||||||
// TODO(vicb): union type return ProtoView or Promise<ProtoView>
|
// TODO(vicb): union type return ProtoView or Promise<ProtoView>
|
||||||
_compileTemplate(template: Template, tplElement, component: Type) {
|
_compileTemplate(template: Template, tplElement, component: Type) {
|
||||||
var pipeline = new CompilePipeline(this.createSteps(component, template));
|
var pipeline = new CompilePipeline(this.createSteps(component, template));
|
||||||
var compilationCtxtDescription = stringify(this._reader.read(component).type);
|
|
||||||
var compileElements;
|
var compileElements;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
compileElements = pipeline.process(tplElement, compilationCtxtDescription);
|
compileElements = pipeline.process(tplElement, stringify(component));
|
||||||
} catch(ex) {
|
} catch(ex) {
|
||||||
return PromiseWrapper.reject(ex);
|
return PromiseWrapper.reject(ex);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user