angular - How do I use the content of the angular2/4 translate dialog? -
this.confirmationservice.confirm({ message: '您确定要删除该记录吗?', header: '确认提示', icon: 'fa fa-info', accept: () => { this.userservice.getroledelect(this.delectselecteduseridjson).then(users => { ..... }, reject: () => { this.loading = false; return false; } }); translatetext(text: string) { this.translate.get(text).subscribe((res: string) => { console.log(res); });}
how translate message , header translate?
message:${this.translatetext('message')}
error: undefined
Comments
Post a Comment