title: angularjs [ng:areq] Argument 'fn' is not a function, got string
body: <p>I am new to angular js..I am getting follwing error please help me out</p>
  
  <p>[ng:areq] Argument 'fn' is not a function, got string</p>
  
  <pre><code>var app = angular.module('demo',[]);
  
  
  app.config('$routeProvider',function($routeProvider){
  
      $routeProvider.when('/add',{
          templateUrl:'demo/add.html',
          controller:'addcontroller'
      }).
      when('/order',{
          templateUrl:'demo/order.html',
          controller:'ordercontroller'
      });
  
  });
  
  app.controller('addcontroller',function($scope){
      $scope.message="order";
  });
  app.controller('ordercontroller',function($scope){
      $scope.message="order";
  });
  </code></pre>