conditionally add a click output 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()">