It seems that the array is not binding properly in the UI. In the HTML code, I am using dataTables.
The variable $scope.successMessage is also not binding to the UI.
I have tried multiple approaches but none seem to be working.
Here is a snippet of the HTML page:
<div class="box-body table-responsive">
<table id="mktable" datatable="ng" class="table table-bordered"
dt-options="dtOptions">
<thead>
<tr>
<th>Account Number</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="rows in accNum">
<td>{{rows.ID}}</td>
</tr>
</tbody>
</table>
</div>
In the JavaScript file, the following code can be found:
mApp.controller('mobileNumberCtrl', function($scope, $rootScope, $state, $compile, DTOptionsBuilder, $location, Connect) {
// Controller logic goes here
});
In the app.js file, the routing for the 'firstRes' state is defined.
.state("firstRes", {
cache: false,
url:'/firstRes',
views:{
content : {templateUrl: 'templates/firstRes.html',controller: 'mobileNumberCtrl'}
}
})
Can you identify any issues in the provided code?