当我在我的angular应用中像这样设置kendo模式对话框时:
<div kendo-window="modalWindow" k-visible="false"
k-modal="true" k-title={{myerrors.title}}>
<label>{{myerrors.messageText}}</label>
</div>我可以打开对话框并传入所需的消息文本,但不能传入标题。将标题绑定到$scope属性的正确方法是什么?
$scope.myerrors = {title: "", msg: ""};
$scope.showMessage = function (title,msg) {
$scope.myerrors.messageText = msg;
$scope.myerrors.title = title;
$scope.modalWindow.center().open();
}发布于 2016-04-13 15:12:34
试试这个:
<div kendo-window="modalWindow" k-visible="false"
k-modal="true" k-title="'{{myerrors.title}}'">
<label>{{myerrors.messageText}}</label>
</div>注意标题被两个引号包围:'和" quotes
https://stackoverflow.com/questions/26981257
复制相似问题