Supports: - binds text nodes, element properties and directive properties - locates decorator, component and template directives. - inline templates of components The compiler is built using a pipeline design, see core/src/compiler/pipeline package. Integration tests to show how the compiler, change_detection and DI work together: core/test/compiler/integration_spec.js
27 lines
522 B
JavaScript
27 lines
522 B
JavaScript
import {ABSTRACT, CONST} from 'facade/lang';
|
|
// import {Type, List} from 'facade/lang';
|
|
|
|
export class TemplateConfig {
|
|
@CONST()
|
|
constructor({
|
|
url,
|
|
inline,
|
|
directives,
|
|
formatters,
|
|
source
|
|
}: {
|
|
url: String,
|
|
inline: String,
|
|
directives: List<Type>,
|
|
formatters: List<Type>,
|
|
source: List<TemplateConfig>
|
|
})
|
|
{
|
|
this.url = url;
|
|
this.inline = inline;
|
|
this.directives = directives;
|
|
this.formatters = formatters;
|
|
this.source = source;
|
|
}
|
|
}
|