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() {
|
ngOnInit() {
|
||||||
this.reviewService.overallRating(this.seriesId, this.chapterId).subscribe(r => {
|
this.reviewService.overallRating(this.seriesId, this.chapterId).subscribe(r => {
|
||||||
this.overallRating = r.averageScore;
|
this.overallRating = r.averageScore;
|
||||||
});
|
this.cdRef.markForCheck();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
updateRating(rating: number) {
|
updateRating(rating: number) {
|
||||||
|
|
@ -92,6 +93,4 @@ export class ExternalRatingComponent implements OnInit {
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected readonly RatingAuthority = RatingAuthority;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue