title: How to route using ngRoute (with Demo)
body: <p>My code starts from here</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  
  
  &lt;title&gt;Routing&lt;/title&gt;
  &lt;/head&gt;
  &lt;body ng-app="myApp"&gt;
  &lt;a href="#/login"&gt;Login&lt;/a&gt;
  &lt;a href="#/register"&gt;Register&lt;/a&gt;
  &lt;div ng-view&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;script src="angular-min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="angular-route.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script&gt;
          var app = angular.module("myApp", ["ngRoute"]);
          app.config(function($routeProvider) {
                $routeProvider
  
                    .when("/login", {
                             templateUrl : "login.html"
                             })
                    .when("/register", {
                           templateUrl : "register.html"
                             })                       
                  });
  &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  
  <blockquote>
    <p>I cannot route, it is simple touting with html, using simple method , the basic one , i do not know why it doesnt route </p>
  </blockquote>