title: Angular 1.5 routing example
body: <p>I am trying to locate an angular 1.5 routing example using $route. The JSFiddle examples I've looked at break if I use higher angular version than used to create the code example. I can't find anything working above 1.2. Ideally I need a working example for AngularJS 1.5.</p>
  
  <p>I have already tried <a href="http://jsfiddle.net/joshdmiller/NEuJ6/" rel="noreferrer">this</a> example:</p>
  
  <pre><code>var app = angular.module( "myApp", [] );
  
  app.config( function ( $routeProvider ) {
    $routeProvider
    .when( '/this', { templateUrl: 'this.html' } )
    .when( '/that', { templateUrl: 'that.html' } )
    .when( '/other', { templateUrl: 'other.html' } )
    .otherwise( { redirectTo: '/this' } );
  });
  
  app.controller( 'MainCtrl', function ( $scope ) {
  });
  </code></pre>
  
  <p>Which fails for 1.2 (and presumably above).</p>