I am currently ramping up with angular, and trying to make dynamic routing work.
Note: I have looked at the question: How to defer routes definition in Angular.js?, and I believe I am doing everything it states, but I'm still getting the error "unknown provider: $routeProvider"
What am I doing wrong?
html:
<!doctype html>
<html ng-app="rProvider">
  <head>
      <link rel="stylesheet" href="css/style.css">
      <script src="lib/angular/angular.js"></script>
      <script src="js/routeProviderTest.js"> </script>
  </head>
  <body>
      <div ng-controller="rControl">
          <h2>Route Controller Test</h2>
          [<a href="r1">Route 1</a> | <a>Route 2</a>]
          <hr/>
          <span class="partial-info">
          Partial: {{routeValue}}
          </span>
          <div ng-view></div>
          <small>The Bottom</small>
      </div>
  </body>
</html>
js:
var myAppModule = angular.module('rProvider',[]);
myAppModule.config(function($routeProvider){
    $routeProvider.when("r1",{templateUrl:"/route1.html"});
});
myAppModule.controller('rControl', function($scope, $route){
    $scope.routeValue = 'nothing yet';
});
thanks in advance...