0
can help me:
Error: Expressionchangedafterhasbeencheckederror: Expression has changed after it was checked. Previous value for 'attr.Aria-describedby': 'msg-default'. Current value? 'id-0'
I am using a service to take the id of the component "app-msg-error" and pass to the input attribute of the "app-radio-button" Component, this passing OK, but on the console I am getting the error above.
Next thing you know: service error.
``
    export class MsgErrorService {
    
    private _msgError = new BehaviorSubject<string>('msg-defaut');
    
    currentMsg = this._msgError.asObservable();
    
    constructor() {}
    
    changeError(msg: string) {
      this._msgError.next(msg);
    }
``
Code of the Commission
`` 
        export class ErrorComponent implements OnInit {
        
        constructor(private msgErrorService: MsgErrorService) {}
        
        @Input()
        @HostBinding(attr.id)
        errorMsgId: `msg-erro-${id++}`
        }
    
    ngOnInit(){
     this.msgErrorService.changeError(this.errorMSgId);
    }
    
    ``