`
(`)
user.component.ts
(user.component.ts)
deleteUser(user: User): void { this.bakeryService.deleteuser(user.id) .subscribe( data => { this.users = data ; enter code here
console.log(this.users); } );
(deleteUser(user:User):void {th??is.bakeryService.deleteuser(user.id).subscribe(data => {this.users = data; enter code here
console.log(this.users);});)
}(})
user.service.ts
deleteuser(id: number): Observable<any> {
return this.http.delete(apiUrl + id );
ask by Ajith translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…