当我在我的角应用程序中设置这样的剑道模态对话框时:
<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();
}
答案 0 :(得分:0)
试试这个:
<div kendo-window="modalWindow" k-visible="false"
k-modal="true" k-title="'{{myerrors.title}}'">
<label>{{myerrors.messageText}}</label>
</div>
请注意,标题被两者包围:'和“引号