Please, consider the below code. A textController is created during initState. If a button is pressed, another textController is created, inside of setState:
parent.component.html <parent-comp [data]="mydata"> </parent-comp> parent.component.ts this.service.abc$ .takeUntil(this.ngUnsubscribe.asOb