I am trying to implement a Rating system for book reading. I have the rating component working on the form but I see (*)
adjacent to the stars. Not sure where they came from.
So when I hover both the star and the asterisk in the brackets are marked simultaneously. I am trying to implement the example from ng-bootstrap.github
Here's part of the code for list.component.html
<ng-container matColumnDef="rating">
<th mat-header-cell *matHeaderCellDef>Rating</th>
<td mat-cell *matCellDef="let element">
<app-rating></app-rating>
</td>
</ng-container>
Here's the code for rating.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-rating',
templateUrl: './rating.component.html',
styleUrls: ['./rating.component.css']
})
export class RatingComponent {
currentRate = 1;
}
I am using ng-bootstrap 4.0.2
and angular-material 7.3.0
.
Edit: Adding code for rating.component.html
<ngb-rating [(rate)]="currentRate"></ngb-rating>