how to handle click event in angular condition 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()">