【发布时间】:2014-11-17 20:22:21
【问题描述】:
当我在我的 Angular 应用程序中像这样设置剑道模式对话框时:
<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();
}
【问题讨论】: