要将Angular Material MatFormField的appearance属性设置为"fill"的主题化,您需要按照以下步骤进行设置:
npm install @angular/material
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/input';
@NgModule({
declarations: [
// ...
],
imports: [
// ...
MatFormFieldModule,
MatInputModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Username
通过以上步骤,您已经成功将Angular Material MatFormField的appearance属性设置为"fill"的主题化。