How to use ng-template on Widget ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2017 08:12 AM
Hello ,
Is there any documentation on how to use ng-template width Widget on Service Portal ?
Regards,
Abdel
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2017 04:16 PM
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