title: Angularjs: routes and controllers without templateURLs?
body: <p>Is it possible to use Angularjs's routing and controller without the templateURL?</p>
  
  <p>For instance, below is my current routes, controllers, and template urls,</p>
  
  <pre><code>return app.config(['$routeProvider', function ($routeProvider) {
          $routeProvider
          .when("/",
          {
              templateUrl: "js/template/1.html",
              controller: "controller1"
          })
          .when("/list1",
          {
              templateUrl: "js/template/2.html",
              controller: "controller2"
          })
  ...
  </code></pre>
  
  <p>And I have <code>ng-view</code> in my html,</p>
  
  <pre><code>&lt;div ng-view&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I tested with the routes without <code>templateUrl</code>,</p>
  
  <pre><code>return app.config(['$routeProvider', function ($routeProvider) {
              $routeProvider
              .when("/",
              {
                  //templateUrl: "js/template/1.html",
                  controller: "controller1"
              })
              .when("/view1",
              {
                  //templateUrl: "js/template/2.html",
                  controller: "controller2"
              })
      ...
  </code></pre>
  
  <p>the result - nothing is displayed on my screen. obviously the controller cannot be triggered anymore.</p>