在自定义指令

时间:2018-11-13 16:56:40

标签: angular angular2-directives

我希望能够使用我自己的ng模板本身的自定义指令来访问在let-*上定义的ng-template变量。

<ng-template kendoGridCellTemplate 
             let-dataItem 
             let-column="column" 
             myDirective [directiveColumn]="column">
    {{someInput}}
</ng-template>

我试图实现的是将let-column值作为输入传递到我的自定义指令中。可能吗?还是只能在ng-template内使用let-*

0 个答案:

没有答案
相关问题