I am trying send data from one component to another in angular 2 . my @output is not working
.I am adding item in list .On click of row
. I am sending data from one component to another.
here is my code
https://plnkr.co/edit/sG6Suhnvc3Qmjmqjym67?p=preview
I do like this,
@Output() userUpdated = new EventEmitter();
liClick(item){
this.userUpdated.emit(item)
}
this is not fired why ?
userSelected(items){
alert(items);
this.title="user is selected" +item.name;
}