Tag: template engine

Angular 2使用数据编译动态模板

我正在为jquery网格控件开发类似接口的桥接器。 使用以下语法呈现网格并按预期工作。 … … 在t-column标签内提供渲染模板的支持时,我能够获取数据和jquery元素。 jQuery元素 现在,该按钮显示template文本。 如何动态更改来自gridData的输入元素值。 export class TemplateElement { private context: any; __parent: tComponents; constructor(protected el: ElementRef) { } ngOnInit() { template.render = (self, selector, data, index, prop) => { let templateObject = self.angularTemplate; if (!templateObject || !templateObject[selector]) { templateObject = templateObject || {}; templateObject[selector] = { key: t.getGuid(‘angulartmpl’), itemData: [], views: […]