我有一個ng格式的組件。我想動態地設置ng表單的名稱,這樣我就可以輕鬆地訪問組件的ng元素值。 例子: <form name="formName">
<component name="componentName"></component>
</form>
和組件裏面我有 <ng-form name="{{$ctrl.name}}">
// Some inputs with special
我有此打字稿類(減小爲簡單起見): class Dictionary<T> {
items = [];
add(item: T) {
this.items.push(item);
}
... more code here ...
}
當我實例化一個variabel var channels = new Dictionary<Chan