title: Inject routes dynamically in angularjs
body: <p>I'm using angular to dynamically create another angular app. I was wondering if there is a way to inject routes dynamically. Something like</p>
  
  <pre><code>angular.module('app').controller('CreateCtrl', function ($scope,$routeProvider) {
    var count = 0;
  
    $scope.addPage = function(){  
      $routeProvider.when('/'+count, {
         templateUrl: 'views/created.html',
         controller: 'CreatedCtrl'
       });
      count++;
    };
  
  });
  </code></pre>
  
  <p>I know this code is silly but I hope it transmits what I'm trying to do. When user intercts with the application he/she will create new routes... is that possible?</p>