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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -