|
|
@ -36,10 +36,13 @@ export class BusinessunitComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
add(businessunit: Businessunit): void { |
|
|
|
add(businessunit: Businessunit): void { |
|
|
|
this.businessunitService.addBusinessunit(businessunit) |
|
|
|
// let test = this.businessunitService.addBusinessunit(businessunit)
|
|
|
|
.subscribe(businessunit => { |
|
|
|
// .subscribe(businessunit => {
|
|
|
|
this.businessunits.push(businessunit); |
|
|
|
// this.businessunits.push(businessunit);
|
|
|
|
}); |
|
|
|
// });
|
|
|
|
|
|
|
|
let test = this.businessunitService.addBusinessunit(businessunit) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(test.toPromise()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onSubmit() { |
|
|
|
onSubmit() { |
|
|
|