I have child component and in this I pass as input an value from parent component. In parent component I'm updating this input variable on event emmiter trigger, but the child component doesn't update. I've checked in augury the input variable updates. Why child component don't updates?
ParentComponent.html
<app-child
[data]="data"
(filterEmmiter)="filter($event)">
</app-child>
ParentComponent.ts
data: any;
.
.
.
getUsers() {
this.usersService.getAllUsers().subscribe(res => {
this.data = res;
});
}
.
.
.
filter(data){
this.data = data
}
app-childcomponent. It's fairly important here...app-child?