Need to know the syntax to add table && table field condition inside ng-if.

gjoshi
Kilo Explorer

Hi,

I want to add one more div where I can put one more 'field specific condition' inside ng-if to restrict users. so if my Customer state field is equals to 'Complete' then it will restrict user to go inside my app..

Table name: Customer (u_c_customer)

field name: Customer sate (u_state), and field value 'Complete'

-------------------------

<div ng-if="!options.customer_definition" class="moveitover">
<h3>Customer Def required. Please select a <a href="/abc?id=abc_reports">Customer Def</a> first.</h3>
</div>

// .....want to add one more div where I can put one more 'field specific condition' inside ng-if to restrict users.

<div ng-if="options.customer_definition && options.field" class="moveitover">
<h3>Customer Def is not processed. Please select a <a href="/abc?id=abc_reports">Customer Def</a> first.</h3>
</div>

---------------------------

1 REPLY 1

adiddigi
Tera Guru

Like below:



<li ng-if="user.groups.admin && group.title == 'Home Pages'">



AngularJS ng-if with multiple conditions - Stack Overflow