title: Menu link not working with angular $routeProvider and Spring MVC
body: <p>I'm having trouble working with Angular.js $routeProvider, I have a link on a menu in which will be mapped via the angular route and will later call an action in the Spring, but it does not work! Below are my files...</p>
  
  <p><strong>snippet of menu.jsp</strong></p>
  
  <pre><code>&lt;li&gt;
      &lt;a class="tooltip-tip ajax-load" href="#" title="Clientes"&gt;&lt;i class="entypo-user"&gt;&lt;/i&gt;&lt;span&gt;Clientes&lt;/span&gt;&lt;/a&gt;
      &lt;ul&gt;
          &lt;li&gt;&lt;a class="tooltip-tip2 ajax-load" href="#/customer" title="Novo Cliente"&gt;&lt;i class="entypo-newspaper"&gt;&lt;/i&gt;&lt;span&gt;Novo Cliente&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p><strong>app.js</strong></p>
  
  <pre><code>var app = angular.module('jooceboxCrm', ['ngRoute', 'service', 'customer', 'ui.bootstrap']);
  </code></pre>
  
  <p><strong>customer.js</strong></p>
  
  <pre><code>var app = angular.module('customer', []);
  
  app.config(function($routeProvider, $locationProvider, $httpProvider) {
      //Set CSFR Token 
      $httpProvider.defaults.headers.common["X-CSRF-TOKEN"] = $("meta[name='_csrf']").attr("content");
  
      console.log('Acesso a Configuração do RouteProvider.');
      $routeProvider.when('/customer', {
          templateUrl : '/viatge/auth/customer',
          controller : 'customerController'
      }).otherwise({
          redirectTo : '/customer'
      });
  });
  
  app.run([ '$rootScope', function($rootScope) {
      $rootScope.customer = [];
      console.log('app.run');
  } ]);
  
  app.controller([ 'customerController', function($scope) {
      console.log('customerController');
  } ]);
  </code></pre>
  
  <h2>EDIT</h2>
  
  <p>I'am using Spring MVC and Tiles framework for rendering my pages. So my  value for template url points to a method in Spring MVC controller:</p>
  
  <p><code>templateUrl : '/viatge/auth/customer'</code></p>
  
  <pre><code>@Controller
  @Transactional(propagation = Propagation.REQUIRED)
  @RequestMapping("/auth")
  public class CustomerController {
  
      final static Logger logger = LoggerFactory
              .getLogger(CustomerController.class);
  
      @Autowired
      private CustomerFacade customerFacade;
  
      @RequestMapping("customer")
      public String customerScreen() {
          return "customer/newCustomer";
      }
  }
  </code></pre>
  
  <p>I'm following this <a href="http://www.dzone.com/articles/angularjs-routing-integration" rel="nofollow">tutorial</a></p>