Category "lifecycle"

How to dispose of and recreate some state

Please, consider the below code. A textController is created during initState. If a button is pressed, another textController is created, inside of setState:

Why ngOnChanges() does not trigger when @Input() update the data Angular 8?

parent.component.html <parent-comp [data]="mydata"> </parent-comp> parent.component.ts this.service.abc$ .takeUntil(this.ngUnsubscribe.asOb