This is my code’s link. Have a look. Hope it helps u
Could you little modify your starter repo, like this?
You can leave from platform.ready() in all pages.
platform.ready()