<app-custom-select [ngClass]="{'invalid': metadata.errors.length > 0}"
                  
                  
                                                 [(ngModel)]="metadata.value"
                  
                  
                                                 [options]="metadata.options"
                  
                  
                                                 [placeholder]="'Select Value'"
                  
                  
                              (updateEmitter)="onValueChange($event)" #customSelect >
                  
                  
                  @Input('customSelect') customSelect: ElementRef;
                  
                  
                  console.log('Select Field: ', this.customSelect);
                  
                  
                  Выдает андефайнд
                  
                  
                
через @ViewChild
Обсуждают сегодня