Sollicitatievraag bij Base

Code snippet, something like: what would you see in the DOM? @Component({ selector: 'cmp', template: '{{value}}' }) export class Cmp implements OnInit, onChanges { value = 10; ngOnInit() { this.value += 5 } ngOnchanges(){ this.value += 1 } }

Antwoord op sollicitatievraag

Anoniem

27 mei 2024

15 becuse ngOnchanges will act when props will change