Ansichten verbessert - 1. Teil
This commit is contained in:
@@ -51,8 +51,10 @@ export class DetailsComponent {
|
||||
}
|
||||
|
||||
async ngOnInit(){
|
||||
this.user = this.userService.getUser();
|
||||
this.listing=await lastValueFrom(this.listingsService.getListingById(this.id));
|
||||
this.userService.getUserObservable().subscribe(user=>{
|
||||
this.user=user
|
||||
});
|
||||
this.listing=await lastValueFrom(this.listingsService.getListingById(this.id,this.criteria.listingsCategory));
|
||||
}
|
||||
back(){
|
||||
this.router.navigate(['listings',this.criteria.listingsCategory])
|
||||
|
||||
Reference in New Issue
Block a user