clipboardCtrl.js 550 Bytes
(function(angular) {
	function clipboardCtrl($scope,params, $uibModal,$uibModalInstance,$sce) {
		$scope.content=params.content;
		$scope.message=$sce.trustAsHtml(params.message);
		
		$scope.copySuccess = function(evt) {
			swal({type: 'success',title: '',text: '复制成功',showConfirmButton:false,timer: 1000,customClass:'swalClipboard'},function(){swal.close();});
		};
		
		$scope.cancel = function() {
	        $uibModalInstance.dismiss('cancel');
	    };
	}
	angular.module('system').controller('clipboardCtrl', clipboardCtrl);
})(angular);