conditional for click method in anagular 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()">