Respond when Angular (re)sets data-bound input properties. The method receives a SimpleChanges object of current and previous property values. Called before ngOnInit and whenever one or more data-bound input properties change.
Questions tagged [ngonchanges]
123 questions
-1
votes
1 answer
Angular communication between parent and child components
I have a case where I have a parent component and 2 child component (selection components based on ng-select)
The idea is that when I select and item in the first ng-select, the same should be disabled in the 2nd. And vice versa.
In the parent I am…

jani_r
- 637
- 1
- 7
- 18
-2
votes
2 answers
Memory leak using ngOnChanges hook
I am facing an issue with a memory leak when using the ngOnChanges hook to access the changes to an input property in my child component.
I am sending a large amount of data (an array with 27000 items) from my parent component and the data within…

FreDP
- 15
- 7
-2
votes
2 answers
How to detect changes of @Input() binding with user defined type in Angular 4
Following is the example code , for what i am doing.
Model Component
//app.models.ts
export class Employee{
Name:string;
Salary:number;
}
Root Component
//app.component.ts
import { Component } from '@angular/core';
import { Employee } from…

Neeraj Singh
- 151
- 2
- 6