how to use ng-repeat in widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2024 07:18 PM
is this correct way to use ng-repeat for the widget
<div ng-repeat="item in items">
<sp-widget widget="item.variableWidget"></sp-widget>
</div>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2024 07:39 PM - edited 08-17-2024 07:39 PM
Hi,
Yes, if you're trying to use the sp-widget directive as many times as there's "item" in "items".
More examples here: https://www.w3schools.com/angular/ng_ng-repeat.asp
You can always test the code yourself and see how it turns out.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2024 07:43 PM
can you help on this
i have created one custom widget to show the RITM and RITM variables
but i want to show the RITM variables by using this variableSummarizerWidget OOB widget . Please help me to populate the relative RITM variables data