remove click event ng-if on condition angular code example
Example: conditional (click) action angular
<button [class]="index===0? 'btn white': 'btn'" (click)="link && goToStories()">
<button [class]="index===0? 'btn white': 'btn'" (click)="link && goToStories()">