Indentation
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -38,10 +38,7 @@ export class GearService extends BaseService {
|
||||
reserveCanopy: reserveCanopy
|
||||
};
|
||||
|
||||
this.http
|
||||
.post(`${this.apiUrl}/Gear`, bodyNewGear, {
|
||||
headers: this.headers
|
||||
})
|
||||
this.http.post(`${this.apiUrl}/Gear`, bodyNewGear, { headers: this.headers})
|
||||
.subscribe(data => console.log(data));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user