title: I am getting an error $ionicPlatform.ready is not a function?
body: <p>i am getting error $ionicPlatform.ready is not a function,actually i am working on internet connection checking when the app is opened,i tried separate example for internet connection checking it is working fine,the same example is using and i tried to integrate the same example in my another example... it is getting error $ionicPlatform.ready is not a function,if i remove this line connection checking is not working .Please help me why i am getting that error.I added code bellow what i worked on example....</p>
  
  <pre><code>    Index.html
      -----------------
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;link href="lib/ionic/css/ionic.css" rel="stylesheet"&gt;
  &lt;link href="css/style.css" rel="stylesheet"&gt;
  &lt;script src="lib/ionic/js/ionic.bundle.js"&gt;&lt;/script&gt;
  &lt;script src="cordova.js"&gt;&lt;/script&gt;
  &lt;script src="js/app.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body ng-app="starter"&gt;
  &lt;ion-pane&gt;
  &lt;ion-header-bar class="bar-stable"&gt;
  &lt;h1 class="title"&gt;Ionic Blank Starter&lt;/h1&gt;
  &lt;/ion-header-bar&gt;
  &lt;ion-content&gt;
  this is net connection testing example
  &lt;/ion-content&gt;
  &lt;/ion-pane&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  app.js
  --------------
  angular.module('starter', ['ionic'])
  .run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
  if(window.cordova &amp;&amp; window.cordova.plugins.Keyboard) {
  cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
  cordova.plugins.Keyboard.disableScroll(true);
  }
  if(window.StatusBar) {
  StatusBar.styleDefault();
  }
  if(window.Connection){
  if(navigator.connection.type == Connection.NONE) {
  alert("there is no internet connection"); 
  $ionicPopup.confirm({
  title: "Internet Disconnected",
  content: "The internet is disconnected on your device."
  })
  .then(function(result) {
  if(!result) {
  ionic.Platform.exitApp();
  }
  });
  }
  }
  });
  })
  </code></pre>
  
  <p>Thank you....</p>