app.component.html
ts: constructor(private toastService: ToastService){}
this.toastService.showSuccessToast(this.translate.instant('Messages.YourPasswordChangedSuccessfully')); this.toastService.showErrorToast(this.translateService.instant("Messages.YourProfileSubmitedFailed"));