Skip to content

Instantly share code, notes, and snippets.

@tkssharma
Created October 7, 2017 12:11
Show Gist options
  • Save tkssharma/c7b108d3e1baab9d2438cd4e33e2eb35 to your computer and use it in GitHub Desktop.
Save tkssharma/c7b108d3e1baab9d2438cd4e33e2eb35 to your computer and use it in GitHub Desktop.
@Component({
selector: 'video-list',
templateUrl: 'video-list.html'
})
class VideoList implements OnInit {
@Input() Videos:video[] ;
@Output() clickParentChange = new EventEmitter();
ngOnInit(){
console.log(this.Videos);
}
handleClickChange(e:any){
this.clickParentChange.emit({
value: e
});
console.log(e);
}
}
export default VideoList;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment