Pass values to child component Angular 7
When you write a child component in Angular 7, that updates its content whenever input changes. So, you can add all necessary computations to the ngOnChanges
lifecycle hook. ngOnInit
called once only.
Please add the following code to list.item-view.component.ts
ngOnChanges() {
this.school = this.schoolObject;
}
Good Luck!