title: Error in loading AngularJs with RouteProvider
body: <p>I am new to angularJs, while using routeProvider angularJs through following error. I tried everything but I did not found an solution.</p>
  
  <p><strong>Errors:</strong></p>
  
  <pre><code>Error: Argument 'fn' is not a function, got string from viewApp
  TypeError: angular.$$minErr is not a function
  </code></pre>
  
  <p>Here is my html file</p>
  
  <pre><code>&lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;script src="angular.min.js" language="javascript" type="application/javascript"&gt;&lt;/script&gt;
  &lt;script src="angular-route.js"&gt;&lt;/script&gt;
  &lt;script src="custom.js"&gt;&lt;/script&gt;
  &lt;title&gt;Anguler App&lt;/title&gt;
  &lt;/head&gt;
  &lt;body ng-app="viewApp"&gt;
  &lt;a href="#/click"&gt;Home&lt;/a&gt;
      &lt;div ng-view&gt;
  
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>AngularJs code that I am using.</p>
  
  <pre><code>var myapp=angular.module('viewApp',[]);
  myapp.config(['$routeProvider',function($routeProvider){
          $routeProvider.when("/click",{
              templateUrl:"partialview.html"
              }).otherwise({
          redirectTo: '/'
        });
      }]);
  </code></pre>