Created
April 15, 2020 05:43
-
-
Save ShilpaLalwani/42ee85078fbb4ebb65e9e4f3da223fe8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Component, Input,Output, EventEmitter} from '@angular/core'; | |
@Component({ | |
selector: 'app-card', | |
templateUrl: 'card.component.html', | |
styleUrls: ['card.component.scss'], | |
}) | |
export class CardComponent { | |
@Input() title: string; | |
@Input() subTitle: string; | |
@Input() caption: string; | |
@Input() avtar: string; | |
@Input() image: string; | |
@Output() likeNotify = new EventEmitter<boolean>(); | |
@Output() shareNotify = new EventEmitter<boolean>(); | |
@Output() learnMoreNotify = new EventEmitter<boolean>(); | |
likeEvent() { | |
this.likeNotify.emit(true); | |
} | |
shareEvent() { | |
this.shareNotify.emit(true); | |
} | |
learnMoreEvent() { | |
this.learnMoreNotify.emit(true); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment