Need to know the syntax to add table && table field condition inside ng-if.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2017 12:59 PM
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>
---------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2017 01:10 PM
Like below:
<li ng-if="user.groups.admin && group.title == 'Home Pages'">
AngularJS ng-if with multiple conditions - Stack Overflow