I am working on angularjs application. I am getting dynamic values from the backend as a list($scope.list
) and while iterating the list using forEach
, i want to add one dummy element.
I have created a demo plunker with similar scenario : https://plnkr.co/edit/XFFYAKEd6gPuL2JAWCbD?p=preview
In the above demo plunker i have created a $scope.list and while iterating the list i want to add one more element({id:'1900',firstname: 'dummyElement', lastname: 'D'}
).Any inputs?