How to use data.variable in ng-show condition of html in a widget?

Ankita Kolhe
Tera Contributor

Hi Community,

 

I'm working on a widget where in server side script I have defined a data variable as below:-

 

data.count1=dat1.count;

 

And want to use same in below html script:-

 

<button ng-show="entities=='yes' && curret_pos<data.count1" ng-click="getNextSet()">

Next

</button>

 

The below highlighted html ,condition is not working as expected.

 

Can someone please help what's wrong with the condition?

 

Thanks

2 REPLIES 2

Dnyaneshwaree
Mega Sage

Hello @Ankita Kolhe ,

Use below image for your reference:

Dnyaneshwaree_0-1718081360074.png


Please accept my solution if it works for you and thumps up to mark it as helpful.

Thank you!!

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru

Hi @Dnyaneshwaree ,

 

Thanks for the response.

I have updated it as curret_pos<"data.count1"". However still it's not working.