<button ng-click="overlayShow('#overlay-exceptions')"
class="ds-button ds-primary">
<div class="ds-align-text-center">SUBMIT NEW REQUEST</div>
</button>
// To open overlays and correctly handles the background page
$rootScope.overlayShow = function(id) {
id = $(id);
console.log(id)
var list = $rootScope.openOverlays;
if(list.length == 0) $('#gsi-html').addClass('gsi-no-scroll');
if(list.indexOf(id) < 0) {
list.push(id);
id.addClass('ds-open');
}
}
ng-click按钮未触发该功能。关于如何解决此问题的任何想法,我认为这可能是语法错误。