title: AngularJS route provider - post request
body: <p>How can I do a post request to a url using routeprovider?   Provided sample code below</p>
  
  <pre><code>&lt;script&gt;
  var app = angular.module("myApp", ["ngRoute"]);
  app.config(function($routeProvider) {
      $routeProvider
      .when("/", {
          templateUrl : "main.htm"
      })
      .when("/red", {
          templateUrl : "red.htm"
      })
      .when("/green", {
          templateUrl : "green.htm"
      })
      .when("/blue", {
          templateUrl : "blue.htm"
      });
  });
  &lt;/script&gt;
  </code></pre>