title: redirect by routing in angularjs
body: <p>i have the following requirement:
  a list should be displayed for all items with edit and delete link. when user clicks on edit, edit form should appear with textboxes and a save button. now when user edits the data and clicks on the save button the data should be saved and the listing page should appear again with the modified data. 
  everything works fine but the how do i redirect to the listing page again through routing in angularjs?
  below is some of the code:</p>
  
  <p>ROUTING CONTROLLER:</p>
  
  <pre><code>    angular.module('productapp', []).
      config(['$routeProvider', function($routeProvider) {
      $routeProvider.
          when('/productapp', {templateUrl: 'partials/productList.html', controller: productsCtrl}).
          when('/productapp/:productId', {templateUrl: 'partials/edit.html', controller: editCtrl}).
          otherwise({redirectTo: '/productapp'});
  }]);
  </code></pre>
  
  <p>edit form:</p>
  
  <pre><code>    &lt;div&gt;
      &lt;form method="POST"&gt;
      &lt;label&gt;Add New Product:&lt;/label&gt;
          &lt;input type="text" name="keywords" ng-model="product.name" placeholder="enter name..." value="{{product.name}}"&gt;
          &lt;input type="text" name="desc" ng-model="product.description" placeholder="enter description..." value="{{product.description}}"&gt;
          &lt;button type="submit" ng-click="save(product.product_id,$event)" &gt;Save&lt;/button&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>how do i redirect to the same listing page?</p>