У меня есть приложение, использующее angular 7 переднюю часть и пружину MVC заднюю часть. Я использую Primeng для отображения таблиц. В качестве улучшения я хочу отобразить [value]="guichetOuvertModels"
из файла JSON:
<p-table #GestionProfilTable [columns]="cols" [value]="gestionProfilList" [lazy]="false"
[paginator]="true" [rows]="10" selectionMode="single"
[scrollable]="false" [responsive]="true"
(onRowSelect)="someClickHandlerGuichetTable($event)"
[(selection)]="selectedGuichet" dataKey="id"
(sortFunction)="customSort($event)" [customSort]="true">
Этот json файл является результатом веб-службы, например:
getListProfils() {
return this.http.get<Array<GestionProfilModel>>(this.profilUrl +
'getAllGroupesUserProfils').toPromise();
}