title: passing a parameter to a route from via a form submission in angular.js
body: <p>i'm trying to implement a search based on certain parameters. i have the view /home and that consists a form. I won't it to redirect to /edit-customer:/customerId view with customer id. </p>
  
  <p><strong>HTML</strong>,</p>
  
  <pre><code>&lt;form&gt;
  From: &lt;input type="text" name="customernumber"&gt;&lt;br&gt;
  
  &lt;a href="#/edit-customer/3"&gt;asdasd&lt;/a&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>route,</strong></p>
  
  <pre><code>app.config(['$routeProvider',
    function($routeProvider) {
      $routeProvider.
        when('/', {
          title: 'Customers',
          templateUrl: 'partials/customers.html',
          controller: 'listCtrl'
        })
        .when('/edit-customer/:customerID', {
          title: 'Edit Customers',
          templateUrl: 'partials/edit-customer.html',
          controller: 'editCtrl',
          resolve: {
            customer: function(services, $route){
              var customerID = $route.current.params.customerID;
              return services.getCustomer(customerID);
            }
          }
        }).when('/home',{
          title: 'home',
          templateUrl:'partials/home.html',
        }).when('/results',{
          title: 'search results',
          templateUrl: 'partials/results.html',
        })
        .otherwise({
          redirectTo: '/'
        });
  }]);
  </code></pre>
  
  <p>how can i achieve this?</p>