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 } }
Utilisateur anonyme
15 becuse ngOnchanges will act when props will change