title: Angular Web Project Not Changing Pages
body: <p>I have a Java Maven Webproject that is using Rest.  I cannot get the project to navigate more than a single time away from the index.html.  I have attempted to use various applications of routes (<a href="http://www.youtube.com/watch?v=zogrnQjHZAM" rel="nofollow noreferrer">Link#1</a>, <a href="https://stackoverflow.com/questions/21733947/how-can-i-create-an-angularjs-spa-application-that-does-not-use-routing">Link#2</a>) and have tried some <code>&lt;div ng-include=""&gt;&lt;/div&gt;</code> tricks with variables controlled from the controller.  When I get a page to load, I cannot get the page to change afterwards from triggering a route (the text of the url is the only thing to display) or changing $scope variables (the variables update, but the view does not).</p>
  
  <p>I have a directory structure like the following:</p>
  
  <pre><code>index.html
  [views]
      -&gt;[subfolder]
          -&gt;view1.html
          -&gt;view2.html
  </code></pre>
  
  <p>I am pretty sure that the issue lies with the directory structure.  I have a simple form in the first view and want to switch to the second view if the data from view1 passes validation.  Both views are currently sharing a controller.</p>
  
  <p><strong><em>Module definition/configuration (routing):</em></strong></p>
  
  <pre><code>var myApp = angular.module('myApp', [ 'ngRoute', 'ngProgress', 'restangular', '$strap.directives', 'ui.event', 'ui.numeric', 'countrySelect', 'pascalprecht.translate', 'form.validation' ]
  ).config(function($routeProvider, RestangularProvider) {
      RestangularProvider.setBaseUrl("/axxyr");
  
      $routeProvider
              .when('/loggedIn', { template: '[views]/[subfolder]/view2.html' })
              .otherwise({redirectTo: '/login', template: '[views]/[subfolder]/view1.html' });
  });
  </code></pre>
  
  <p><strong><em>Update:</em></strong></p>
  
  <p><a href="http://plnkr.co/edit/l2w9VOrf7ujuqQLAVbfW?p=preview" rel="nofollow noreferrer">Here</a> is a Plunker that shows the  example, but in my project, the $scope variable I am using to toggle the two views changes inside the view, but not in the index.html file.</p>