Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 2-Filtering table based on select dropdown (both are different components)

Tags:

I'm trying to filter data table component based on the value passed by select drop down component.I'm using @Input() attribute but the selected dropdown data is not been passed to data table component. If it is passed I will be able to filter table using the below logic:

Not sure where I'm doing wrong here.

onChangeDetected(val){ 
  this.someData= this.someData.filter(x => x.value== val)
}

Full implementation can be found here