【发布时间】:2020-07-09 13:42:32
【问题描述】:
在使用 ng2-google-charts 和 angular-material 时,选择列表位于图表下方,而控件位于图表上方。我如何将它们放在一起?
<mat-form-field>
<mat-label>Continent</mat-label>
<mat-select [(ngModel)]="continents" (change)="onSelectContinent()">
<mat-option *ngFor="let continent of continents | keyvalue" [value]="continent.key">{{continent.value}}</mat-option>
</mat-select>
</mat-form-field>
选择列表是在
模块导入
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatSelectModule} from '@angular/material/select';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {MatButtonModule} from '@angular/material/button';
【问题讨论】: