Hello,
still new to Ionic but trying to create a simple book application.
I’ve built it around the slide-box, having an ion-scroll inside each page. Content is being fed into the slides from a javascript array.
The book is approximately 200KB in size, so what I don;t understand is how the app ends up using between 200 and 600 MB in the iOS simulator. On the physical iPad I get a couple of memory warnings, and then it simply crashes.
This is the the source code of the template:
<ion-slide-box
does-continue='false'
show-pager='false'
auto-play='false'
delegate-handle="chapterslidebox"
direction="horizontal"
>
<ion-slide ng-repeat="chapter in book">
<ion-scroll
class="padding hhappsSerif marginReading"
direction="y"
style="background-color: white; height:{{viewHeight-30}}px; width:{{viewWidth}}px; border:solid #880000 2px"
scroll="true"
>
<div ng-bind-html="chapterBody($index)" style="height:100%;width:100%; background:white"></div>
</ion-scroll>
</ion-slide>
</ion-slide-box>
Any suggestions?
How would you typically track down a memory leak in a javascript app?
Thanks for any advice