ngCordova plugin ready event doesn't work on load


When I include ngCordova plugin wrapped in $ionicPlatform on controllers.js file, it works only after navigating to another state and coming back but if I merge controllers.js and app.js file , it works just fine on firstLoad. Is there something I could do to maintain file directory structure and make it work?


Could you share some code?


Sorry for not updating. I solved it by ‘ngCordova’ module dependency injection on controllers.js and not just on app.js