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() { getListOfGears() {
this.serviceApi.getListOfGears().subscribe(data => { this.serviceApi.getListOfGears()
.subscribe(data => {
setTimeout(() => { setTimeout(() => {
this.dataSourceTable = new MatTableDataSource<GearResp>(data); this.dataSourceTable = new MatTableDataSource<GearResp>(data);
this.dataSourceTable.paginator = this.paginator; this.dataSourceTable.paginator = this.paginator;

View File

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