ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

$ionicPlatform.ready doesn’t gets triggered every time Chrome

Open Set2005 opened this issue 12 years ago • 3 comments

My problem is with no changes to my code, $ionicPlatform.ready function doesn't gets triggered every time when I refresh the page, say I refresh 6 times then the next time it won't trigger it, and report following error, if I refresh again it would trigger it again:

Uncaught Error: [$injector:modulerr] Failed to instantiate module starter due to: Error: [$injector:modulerr] Failed to instantiate module google-maps due to: Error: [$injector:nomod] Module 'google-maps' is not available! You either misspelled th

I am using Chrome to test my Ionic app, one of my page uses google-map module, my module looks like this: angular.module('starter', [ 'ionic', 'starter.controllers', 'starter.services', 'google-maps', 'FacebookProvider', 'btford.phonegap.geolocation' ])

Set2005 avatar Apr 28 '14 01:04 Set2005

@jianbo sounds like this is an issue in your code not ours. The javascript error is probably killing the page and thus our ready event doesn't fire.

Send some demos and we can see, but for now i'm closing this as not an Ionic issue.

mlynch avatar Apr 28 '14 15:04 mlynch

Thanks for that, think its my browser's problem, shows me net::ERR_CONNECTION_RESET when loading js files

Set2005 avatar Apr 28 '14 21:04 Set2005

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 06 '18 08:09 ionitron-bot[bot]