title: angularjs ngRoute not working
body: <p>ngRoute not working while no errors are reported to console .</p>
  
  <p>given no errors to console, how is it possible to follow execution of ngRoute procedures ?</p>
  
  <p>i saw examples using $locationProvider.html5Mode(true), i don't understand when that should be used but i don't think it is required to make ngRoute work.</p>
  
  <p>index.html has navigation links and ngView :</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8" /&gt;
    &lt;script src="bower_components/angular/angular.js"&gt; &lt;/script&gt;
    &lt;script src="bower_components/angular-route/angular-route.js"&gt; &lt;/script&gt;
    &lt;script src="main.js"&gt; &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body ng-app="Main"&gt;
  &lt;ul&gt;
    &lt;li&gt; &lt;a href="#content/first"&gt; first partial &lt;/a&gt; &lt;/li&gt;
    &lt;li&gt; &lt;a href="#content/second"&gt; second partial &lt;/a&gt; &lt;/li&gt;
  &lt;/ul&gt;
  &lt;div ng-view&gt;&lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>main.js defines the router and the controllers :</p>
  
  <pre><code>var Main = angular.module('Main', ['ngRoute']);
  
  function router($routeProvider) {
  
   var route = {templateUrl: 'partials/default.html'};
    $routeProvider.when('', route);
  
    route = {
      templateUrl: 'partials/first.html',
      controller: 'first'
    };
    $routeProvider.when('content/first', route);
  
    route = {
      templateUrl: 'partials/second.html',
      controller: 'second'
    };
    $routeProvider.when('content/second', route);
  }
  
  Main.config(['$routeProvider', router]);
  
  Main.controller('first', function($scope) {
    $scope.list = [1,2,3,4,5];
  });
  
  Main.controller('second', function($scope) {
    $scope.list = [1,2,3];
  });
  </code></pre>
  
  <p>partials simply make use of ngRepeat:</p>
  
  <pre><code>&lt;header&gt; First content &lt;/header&gt;
  &lt;p ng-repeat="iter in list"&gt;
    first
  &lt;/p&gt;
  </code></pre>
  
  <p>solved : 
  my problem was that my whole application is located under /ang/ prefix, and after adding that prefix to urls now it is working . 
  shouldn't there be a way to use relative urls ? i guess there should and i will try to fix it .</p>
  
  <p>the problem is NOT with the different syntax as everyone suggested, and that is alarming to the fact many JS developer do not in fact understand the one line syntax that they are using everywhere .</p>