I have a tabbed application and in one of the tabs I have a Google map. As you can imagine, I don’t want to initialize and load the map every time the user switches to that tab. As I understand it, Ionic doesn’t keep html-elements in the DOM so when I click on a new tab the the previous tab is removed from the DOM.
This isn’t an issue when it comes to the data of the app, I’ve managed to cache that using a service.
But what can I do to keep the entire HTML-contents of specific tabs?
I’m fairly new to both Ionic and AngularJS.