title: $injector:modulerr error caused by routeProvider implementation
body: <p>Try to implement route in angularjs, it shows Error: $injector:modulerr?</p>
  
  <pre><code>var app = angular.module('myApp', []);
  // the code below caused error
  app.config(function($routeProvider) {
      $routeProvider
          .when('/action/:index', {
          templateUrl: 'edit.html'
      });
  });
  </code></pre>
  
  <p>I can't see what's wrong here.</p>