Angular - Lifecycle Hooks
Given this Angular component code snippet:
What will be logged first when the component receives its first input value?
export class MyComponent implements OnInit, OnChanges {
@Input() data: string;
ngOnChanges() { console.log('Changes detected'); }
ngOnInit() { console.log('Init called'); }
}What will be logged first when the component receives its first input value?
