I am stuck in one scenario where i have to pass data from one controller to another controller.
My app works like this:
View 1 -> gets some users from json array and displays in a table.
When i click add user in View 1, i get redirected to view 2.
View 2 -> has 2 input fields and a button (to add a new user).
When i redirect to view 1, i want the new user to get appended but this is not working.
To make it easy, i have demoed this here - http://plnkr.co/edit/yz6mpplZGh4q5bPDO2bc?p=preview
Any help is much appreciated.