how to use ng-repeat in widget

hemantnh
Tera Expert

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>

2 REPLIES 2

Allen Andreas
Administrator
Administrator

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!

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