我有一個ngFor,它創建了幾個PrimeNG按鈕。現在,按鈕在同一行上直接出現在彼此之後 - 我希望每個按鈕都垂直顯示在其上。你如何去做這件事?這裏是我的ngFor代碼:ngFor循環換行
<button pButton type="button"
*ngFor="let atrConfig of atrConfigs; let i = index"
(click)="selectConfiguration(atrConfig)" label = "">
Name: {{atrConfig.name}} <br />
</button>