title: retrieving individual records through angularjs from mongodb
body: <p>I have an api that fetches categories from my mongodb collection which is as follows:</p>
  
  <pre><code>app.get('/categories', function (req, res) {
  
  Category.find(function (err, categories) {
    if (err)
      res.send(err);
  
    res.json(categories);
    });
  });
  </code></pre>
  
  <p>This is used to display a dropdown which contains a list of categories:</p>
  
  <pre><code>&lt;a href="#/gallery"&gt;Our Designs &amp;#9662;&lt;/a&gt;
        &lt;ul class="dropdown"&gt;
          &lt;li&gt;&lt;a href="" ng-repeat="category in categories"&gt;{{category.name}}&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
  </code></pre>
  
  <p>I want to access a specific category via its "_id" i.e. /categories/:_id whenever a category link is clicked, but I can't find a way to do it.</p>