我有一个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