Missed cdref.
This commit is contained in:
parent
ff8cba71f5
commit
6ffb9f7230
1 changed files with 2 additions and 3 deletions
|
|
@ -61,7 +61,8 @@ export class ExternalRatingComponent implements OnInit {
|
|||
ngOnInit() {
|
||||
this.reviewService.overallRating(this.seriesId, this.chapterId).subscribe(r => {
|
||||
this.overallRating = r.averageScore;
|
||||
});
|
||||
this.cdRef.markForCheck();
|
||||
});
|
||||
}
|
||||
|
||||
updateRating(rating: number) {
|
||||
|
|
@ -92,6 +93,4 @@ export class ExternalRatingComponent implements OnInit {
|
|||
|
||||
return '';
|
||||
}
|
||||
|
||||
protected readonly RatingAuthority = RatingAuthority;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue