Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to use ng-template on Widget ?

abdel_moumene
Kilo Contributor

Hello ,

Is there any documentation on how to use ng-template width Widget on Service Portal ?

Regards,

Abdel

1 REPLY 1

iurii_raboshuk
Giga Contributor

Hello,



Not sure if there's any official documentation, but essentially ng-templates bound to particular widget are inserted into $templateCache (https://docs.angularjs.org/api/ng/service/$templateCache) at the time when widget is loaded into the page. This allows using them in directives such as ng-include (https://docs.angularjs.org/api/ng/directive/ngInclude) or in the "templateUrl" properties of the directive configuration object.



Regards,


Iurii