title: Express.js or angular for handling routes in a MEAN application?
body: <p>I am totally new to everything Nodejs/express/angular, and I just ran into a question that bothers me.</p>
  
  <p>When you have a MEAN stack, it seems that routes can be handled by both <code>Express.js</code> and <code>Angular</code>.</p>
  
  <p><strong>Angular</strong>:</p>
  
  <p>For instance, if I define a route in Angular, I can do it like this:</p>
  
  <pre><code>var app = angular.module("app", []).config(function($routeProvider) {
      $routeProvider.when('/login', {
          templateUrl: '/templates/login.html',
          controller: 'LoginController'
      });
  
      $routeProvider.when('/front', {
          templateUrl: '/templates/front.html',
          controller: 'FrontController'
      });
  
  
      $routeProvider.otherwise({redirectTo: '/front'})
  });
  </code></pre>
  
  <p><strong>But with express.js I do</strong>:</p>
  
  <pre><code>app.get('/',function(req,res){
      res.sendfile('templates/angular.html');
  });
  </code></pre>
  
  <p><strong>So my question is</strong>:</p>
  
  <p>When do you use angular routing, and when do you use express routing?</p>
  
  <p>(I might miss something very obvious here, but I hope you can point it out)</p>