Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229129

Performance of functions in HTML template

$
0
0

Do your strings change when you are on a given page? If your strings are more or less static during a view, then your biggest savings would come from disabling change detection once you have loaded what you want. Or you can change the change detection strategy from default to onPush. I did that, though it seems I'm one of the only people on this board who works in onPush change detection.

I suggest you dig into the Angular docs on ChangeDetectorRef and ApplicationRef. You'll probably find a lot of cost savings, given what you're trying to do.


Viewing all articles
Browse latest Browse all 229129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>