title: Angular routing via ng-template
body: <p>Hi What wrong am i doing. I am new to angular js and i am using ng-template for routing withing the views. </p>
  
  <pre><code>myApp.config(['$routeProvider','$locationProvider',function($routeProvider,$locationPro    vider) {
      $routeProvider.
        when('/', {
          templateUrl: 'add.html',
          controller: 'myAppCtrl'
        }).
        when('/edit',{
          templateUrl:'edit.html',
          controller:'myAppCtrl'
        }).
         otherwise({
          redirectTo: '/'
        });
  $locationProvider.html5Mode(true);
     }]);
  }])
  </code></pre>
  
  <p>But its not working. Please help me . </p>
  
  <p>below is my part of html</p>
  
  <pre><code>&lt;body ng-controller="myAppCtrl"&gt;
  &lt;div ng-view&gt;
  &lt;script type="text/ng-template" id="add.html"&gt;
  &lt;div&gt;
  &lt;input type="text" ng-model="$storage.myname"/&gt;
  &lt;input type="text" ng-model="$storage.myid"/&gt;
  &lt;input type="number" ng-model="$storage.mynumber"/&gt;
  &lt;button ng-click="submit();"&gt; submit &lt;/button&gt;
  &lt;/div&gt;
  &lt;/script&gt;
  &lt;/div&gt;
  </code></pre>