title: Routeprovider injection
body: <p>What is the problem with the following code?</p>
  
  <pre><code>(function() {
    angular
    .module('myapp')
    .config(ConfigureProvider);
  
    ConfigureProvider.$inject = ['$routeProvider'];
  
    function ConfigureProvider($routeProvider){
      $routeProvider.
        when('/',{                        
           templateUrl:'main.html', 
           controller:'GalleryController' 
        }).
        when('/1',{                   
           templateUrl:'favourites.html', 
           controller:'FavouritesController' 
        })
    }
  })();
  </code></pre>
  
  <p>I am getting the following error:  <code>Uncaught Error: [$injector:nomod] http://errors.angularjs.org/1.5.3/$injector/nomod?p0=myapp</code></p>