如何将动态数据放入 ngx-toastr?

how to put dynamic data in ngx-toastr?

登录后我想显示一个烤面包机作为欢迎登录用户名。

this.toastr.success('Welcome to '+authenticUser.user.firstName,'Success')

this.toastr.success(`Welcome to ${authenticUser.user.firstName}`,'Success');

在Angular或任何编程语言中,建议使用反引号进行字符串连接。

this.toastr.success(`Welcome to ${authenticUser.user.firstName}`,'Success');