title: Check for Internet connectivity in Angular2 (not Ionic) Cordova app
body: <p>We have created an Angular2 Cordova (not Ionic) app that makes many calls to backend services. </p>
  
  <p>We would like the app to show a specific page (Component) if the user has no connection. We have that all built, however how do we sense the connectivity and then show the page?</p>
  
  <p>The app is written in TypeScript, I was thinking I could add some code to the index.ts file to accomplish this, but the index.ts file doesn't understand the app's navigation to allow me to change the page.</p>
  
  <p>I know I need the Cordova Network Information plugin and I know how to use that to check for connectivity, but the missing piece is hooking that up so that it can change the page (route to the appropriate component).</p>