I am getting some compilation error while building the angular project and the error is given below.
Error:
list.component.html(155,47): Property 'auth' is private and only accessible within class 'ListComponent'.
I am explaining my code below.
<td mat-cell *matCellDef="let element; let i = index;">
<mat-icon *ngIf="auth.currentUserValue.RoleName === 'admin'" (click)="editStore(element)" class="text-primary"
style="cursor: pointer">edit</mat-icon>
<mat-icon *ngIf="auth.currentUserValue.RoleName === 'admin'" (click)="deleteStore(element)" class="text-danger"
style="cursor: pointer">delete_forever
</mat-icon>
</td>
import { AuthenticationService } from 'src/app/_services';
constructor(private auth : AuthenticationService) {}
I need to clear this error.