【发布时间】:2017-10-05 02:58:15
【问题描述】:
this.selectedDashboard.data.name 是一个以 json 字符串格式返回的承诺,它等于所选的破折号名称。 (例如:名称:'我的仪表板')。那么我如何在不弄乱html文件的情况下让它变得大胆或强大。坦率地说,我有点无法访问 html 文件。
所以 this.sialertdialog 的输出是这样的:你确定要删除 my dashboard 吗?此操作无法撤消!
deleteDashboard = () => {
let dashname = this.selectedDashboard.data.name;
console.log(dashname);
this.siAlertDialog.confirm(this.$filter('translate')('SI-MESSAGES.DELETE-DASHBOARDMSG') + dashname +' ?'+ ' This operation cannot be undone!')
【问题讨论】:
标签: javascript html json angular ecmascript-6