expression changed after it has been checked error angular code example
Example: expression changed after it has been checked
export class BComponent {
@Input() text;
constructor(private parent: AppComponent) {}
ngOnInit() {
this.parent.text = 'updated text';
}
}<>Copy