I am new to AngularJS.
I have 2 views, first one is for customer and other for city. The customer view has some basic fields to add information about customer, including button to add new city.
If I press the "add new city" button, then the view for adding new city is rendered. After this, when I go back on customer view, all previous entered information is lost.
How to keep this information?
servicevariables and not$scopevariables if you want yourng-modelsto retain their values even after navigation.