I have the below code in my controller:
angular.module('starter.controllers',[]).controller('comeCtrl', function($scope, $ionicModal)
{
$ionicPlatform.ready(function() {
console.log('platform Ready!');
$scope.callSomeFunction();
});
....
When I run this on my iOS device (not browser), callSomeFunction never gets called and nothing is printed to the console. Any idea what I am missing here?
You have to include $ionicPlatform among the injected parameters of the controller.
Modify the first line as follows:
angular.module('starter.controllers',[]).controller('comeCtrl', function($scope, $ionicModal, $ionicPlatform)