AngularJS ng-repeat refresh with new API call
AngularJS ng-repeat refresh with new API call Currently working on an application where I'm doing an API call to get the data and then using ng-repeat directive to populate the table on the view. ng-repeat <tr md-row ng-repeat="request in requests"> <td md-cell>{{request.name}}</td> <td md-cell>{{request.email}}</td> <td md-cell>{{request.application_name}}</td> <td md-cell>{{request.created_user}}</td> <td md-cell>{{request.request_type}}</td> <td md-cell>{{request.status}}</td> </tr> And in the controller, a user makes a new request and it adds a row to the database and after the success dialog comes up, I want to make a new request to the API to get the new row that the server generated, so I want to make a new API request. So, I contact the API and get all the requests again and want to replace the data on the table with the refreshed da...
