From 630ac66d8ccb38eef555f96f12f40e6e14b74eca Mon Sep 17 00:00:00 2001 From: Clement FERRERE Date: Mon, 27 Jun 2022 15:01:54 +0200 Subject: [PATCH] avancements codes retour --- .../components/businessunit/businessunit.component.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/app/components/businessunit/businessunit.component.ts b/src/app/components/businessunit/businessunit.component.ts index de93580..9a55608 100644 --- a/src/app/components/businessunit/businessunit.component.ts +++ b/src/app/components/businessunit/businessunit.component.ts @@ -36,10 +36,13 @@ export class BusinessunitComponent implements OnInit { } add(businessunit: Businessunit): void { - this.businessunitService.addBusinessunit(businessunit) - .subscribe(businessunit => { - this.businessunits.push(businessunit); - }); + // let test = this.businessunitService.addBusinessunit(businessunit) + // .subscribe(businessunit => { + // this.businessunits.push(businessunit); + // }); + let test = this.businessunitService.addBusinessunit(businessunit) + + console.log(test.toPromise()); } onSubmit() {