我正在尝试动态地从指令中添加选择框。相同的ng选项在没有指令的情况下完全工作,但是它从指令中给出了空列表。请检查一下小提琴下面。代码:
<select ng-model="selectedOption" ng-options="option for option in [1,2,3,45,6,8,9,7]">
我想在parent component template using ngFor指令中插入一个动态的组件列表,为列表中的每个组件创建ng-template主机占位符。我尝试过的:<div *ngFor="let component of components;let i = index">[
{ 'component' : Dy