ajout categ dans formulaire creation restau
This commit is contained in:
parent
b7d5ef1043
commit
500ba0811a
7 changed files with 91 additions and 51 deletions
|
|
@ -8,5 +8,8 @@
|
|||
<div>
|
||||
<button class="btn btn-danger" type="button" (click)="deleteRestau(restau.id)"><i class="bi bi-trash"></i></button>
|
||||
</div>
|
||||
<div>
|
||||
<button class="btn btn-warn" type="button" (click)="modifRestau(restau.id)"><i class="bi bi-gear"></i></button>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, Input, OnInit } from '@angular/core';
|
||||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||
import { Restaurant } from 'src/app/pages/models/restaurant';
|
||||
import { ApiBackService } from 'src/app/services/api-back.service';
|
||||
|
||||
|
|
@ -10,6 +10,7 @@ import { ApiBackService } from 'src/app/services/api-back.service';
|
|||
export class UpdateDelRestauComponent implements OnInit {
|
||||
|
||||
restauList : Restaurant[];
|
||||
@Output() idRestauAModif = new EventEmitter<number>();
|
||||
|
||||
constructor(private apiBackService : ApiBackService) {
|
||||
this.restauList = [];
|
||||
|
|
@ -35,4 +36,8 @@ export class UpdateDelRestauComponent implements OnInit {
|
|||
});
|
||||
}
|
||||
|
||||
modifRestau(idRestau : number | undefined){
|
||||
this.idRestauAModif.emit(idRestau);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue