title: Multi-Device Hybrid Apps with angularjs on Android: $location.path() not working
body: <p>I've got a strange problem in a very simple project using Multi-Device Hybrid Apps on Visual Studio 2013 Update 2 with Apache Cordova and AngularJS. I've set up routing with the ngRoute module, defined a div with the ngView directive and just want to navigate to another page by code using the angular $location service.</p>
  
  <p>My call looks like this: </p>
  
  <pre><code>$location.path('/home');
  </code></pre>
  
  <p>The routing (and module definition) is set up like this:</p>
  
  <pre><code>var app = angular.module('tk', ['ngRoute']);    
  
  app.config(function ($routeProvider) {
  
     $routeProvider.when('/home', {
        templateUrl: '/app/views/home/home.html',
        controller: 'homeController'
     });
  
     $routeProvider.when('/login', {
        templateUrl: '/app/views/login/login.html',
        controller: 'loginController'
     });   
  });
  </code></pre>
  
  <p>When the code is executed the view doesn't change! The same code works perfectly well in Ripple but I can't get it to work in the android debugger.</p>
  
  <p>I'm using android 4.4.2 - API level 19 on ARM (armeabi-v7a).</p>
  
  <p>When the call to <code>$location.path('/home')</code> is executed I can see in the debugger that the property absUrl of the $location service changes its value from "file:///android_asset/www/index.html" to "file:///android_asset/www/index.html#/home" but that's all. No navigation to the view takes place.</p>
  
  <p>Am I missing something completely?</p>
  
  <p>edit 1:
  In Java Script Console i noticed the following messages:</p>
  
  <pre><code>Failed to load resource File: home.html, 
  Line: 0, Column: 0 
  deviceready has not fired after 5 seconds. File: cordova.js, 
  Line: 1128, Column: 17 
  Channel not fired: onPluginsReady File: cordova.js, 
  Line: 1121, Column: 21 
  Channel not fired: onCordovaReady File: cordova.js, 
  Line: 1121, Column: 21
  </code></pre>
  
  <p>Actually i'm not using any cordova plugins right now. Just pure Angular stuff. 
  The call to $location.path() obviously fails because the resource couldn't be loaded.</p>
  
  <p>But why did this succeed in Ripple?</p>