I have the following array of objects in my controller
$scope.reportsValuesOptions = [
value:'Cash Position Report',
option:'Cash Position Report'
value:'FCCS/FBPS Detail Report',
option:'FCCS/FBPS Detail Report'
option:'Custom Report Name'
<select name="rname" id="rname" ng-model="rname" ng-options="report.option for report in reportsValuesOptions track by report.value">
<tr ng-if="rname === CustomReport">
<td class="label-cell">* Custom account Number(s) :</td>
<input type="text" id="custaccountNumber" name="custaccountNumber" ng-model="custaccountNumber" />
In addition to your
ngModel actually be an
object, you have to use single quotes in your comparison, as below:
<tr ng-if="rname.value === 'CustomReport'">