thx - it’s not related to Google Maps, but everything I want to keep ‘as is’ in the DOM (e.g. a small list the user re-arranged). In ‘normal’ SPA there’s a structure similar to this:
<div id="view1" class="active">
The “active” view is shown to the user. When switching to the next view (setting it’s class to “active”), all other views stays intact. From the sidebar I just switch classes.
I am just learning AngularJS and Ionic, so my question was more: HOW does the above translate to AngularJS/Ionic? There are plenty of examples out there showing how to init things, write directives, etc… but nothing seems to show how to translate commonly handled situations using AngularJS/Ionic, which is - IMO - quite interesting for anyone trying to move towards AngularJS/Ionic.
So any hints appreciated.
BTW: I solved the original problem by writing a small factory which keeps my data. While this works fine, I currently don’t see the advantage. Before I just didn’t care and when the user came back to the map, it was still where he/she left.