Indentation
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user