@blondie63 wrote:
Hi all, i’m using this code:
this.translate.get('ALERT_ERROR').subscribe(text => this.ALERT_ERROR = text);
but vs.code said me this:
@deprecated — Use an observer instead of a complete callback
@deprecated — Use an observer instead of an error callback
@deprecated — Use an observer instead of a complete callbackCan i use a better syntax ?
Thanks for help
Posts: 1
Participants: 1