Help with sp_ng_template
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 01:30 AM
Hi
Can someone please help me with below script in a sp_ng_template. I want to add OR condtion for ng-if="c.data.offNetworkOptionSelected == 'Moved departments'" OR ng-if="c.data.offNetworkOptionSelected == 'hsbc_office_not_required'", I have tried OR and || but its not working.
<div ng-if="c.data.offNetworkOptionSelected == 'Moved departments'" style="margin-top:10px" || ng-if="c.data.offNetworkOptionSelected == 'hsbc_office_not_required'" style="margin-top:10px" >
TIA
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 01:41 AM
Hi @Ankita9793 ,
Try below-
<div ng-if="c.data.offNetworkOptionSelected == 'Moved departments' || c.data.offNetworkOptionSelected == 'hsbc_office_not_required' ">
Thanks and Regards,
Saurabh Gupta