Indentation

This commit is contained in:
Sébastien André
2021-03-12 18:02:49 +01:00
parent 69a9a4843c
commit 351bd03025
2 changed files with 4 additions and 6 deletions

View File

@@ -46,7 +46,8 @@ export class ListOfGearsComponent implements OnInit {
}
getListOfGears() {
this.serviceApi.getListOfGears().subscribe(data => {
this.serviceApi.getListOfGears()
.subscribe(data => {
setTimeout(() => {
this.dataSourceTable = new MatTableDataSource<GearResp>(data);
this.dataSourceTable.paginator = this.paginator;

View File

@@ -38,10 +38,7 @@ export class GearService extends BaseService {
reserveCanopy: reserveCanopy
};
this.http
.post(`${this.apiUrl}/Gear`, bodyNewGear, {
headers: this.headers
})
.subscribe(data => console.log(data));
this.http.post(`${this.apiUrl}/Gear`, bodyNewGear, { headers: this.headers})
.subscribe(data => console.log(data));
}
}