Angular MatFormControl, ControlValueAccessor
问题 I have a custom component, it's a wrap for mat-select. How can I use it in others component's? I was reading about formControl and controlValueAccessor, but I don't understand alot. my custom.html <mat-select> <mat-option [value]="opt" *ngFor="let op of opt; index as i">{{opt[i]}}</mat-option> </mat-select> <input matInput> my custom.ts import { Component, OnInit, Input } from '@angular/core'; import { MatFormFieldControl } from '@angular/material/form-field'; @Component({ selector: 'cust