2
I have the following code:
@Input() listas: IniciarFuncaoModel;
ngOnChanges(changes: SimpleChanges): void {
if (changes.listas) {
this.iniciarFuncao();
}
}
- Simplechanges is an Angular API?
- I understood that in the example, Simplechanges is typing the changes parameter. (That’s it?)
- But I don’t understand why you use 'changes.list' as if parameter.
- My question is: Typing the changes parameter with Simplechanges causes the list variable to become an attribute of the changes parameter?!