How to add custom angular directive in service portal widget?

zachp1
Kilo Contributor

I'm trying to get the bootstrap function popover to work within ng-repeat in service portal widget. It looks like a need a directive similar to:

app.directive('bsPopover', function() {

      return function(scope, element, attrs) {

              element.find("a[rel=popover]").popover({ placement: 'bottom', html: 'true'});

      };

});

And I am having trouble adding the directive properly to my widget so the popover function will work within the widget.

Thanks in advance for any help!

2 REPLIES 2

Manjeet Singh
ServiceNow Employee
ServiceNow Employee

Hi,



The information on these threads might help here:



How to add directive to widget serviceportal



Writing an AngularJS custom filter for Service Portal



Thanks,


Manjeet


nathanfirth
Tera Guru