【发布时间】:2016-11-13 16:48:40
【问题描述】:
我有这个弹出功能。它有一个弹出模板。有一个删除和取消按钮。我想在弹出窗口打开时将注意力集中在取消按钮上。我该怎么做?
$scope.Popup = function(funcname){
alert_template({
id: '',
title: '',
scope: $scope,
template: '<div class=""><span>Delete the selected item?</span></div>',
success: {
label: 'Delete',
fn: function(){
//Do Something
}
},
cancel: {
label: 'Cancel',
fn: //Do Something
}
});
【问题讨论】:
标签: angularjs