Adding id in urls in angular js
<p>I am creating an app on angular in which I need every user has its separate page.</p>

<pre><code> localhost/{username}
</code></pre>

<p>below are my routing param,</p>

<pre><code>app.config(function($routeProvider) {
$routeProvider

  .when('/', {
    templateUrl : '../../views/index_old.html',


  })

  .when('/email/signup', {
    templateUrl : '../../views/emailsignup.html',
    controller  : 'myCont'

  })

  .when('/email/code/', {
    templateUrl : '../../views/emailcode.html',
    controller  : 'codeCheck'

  })

  .when('/user/basic/', {
    templateUrl : '../../views/basicInfo.html',
    controller  : 'userbasicInfo'

  })

  .when('/user/location/', {
     templateUrl : '../../views/userLocation.html',
     controller  : 'userLocation'

   })

});      
</code></pre>

<p>I am not able to pass username in the urls.
Is there any way to do that.</p>