title: Separate pages for items in MEAN application
body: <p>I'm writing application with Node, Express, Mongoose and Angular. I can display all items on a page. My next step is to write separate page for items from database, so i create route:</p>
  
  <pre><code>app.get '/products/:product_id', (req, res) -&gt;
      Product.findById req.params.product_id,  (err, product) -&gt;
          res.send(err) if (err)
          res.render('product.html', { name: product.name } )     
          return      
      return
  </code></pre>
  
  <p>Everything cool, i can display name with &lt;%= name %> in product.html, but Angular doesn't work. Without '/:product_id' work. 
  This is my route to get all products:</p>
  
  <pre><code>app.get '/api/products', (req, res) -&gt;
      Product.find (err, products) -&gt;
         if (err)
              res.send(err)
          res.json(products); # return all products in JSON format
          return
      return
  </code></pre>
  
  <p>And on the front side:</p>
  
  <pre><code>$http.get('/api/products')
      .success (data) -&gt;
          $scope.products = data
          console.log(data)
          return
      .error (data) -&gt;
          console.log('Error: ' + data)
          return
  </code></pre>
  
  <p>So, how i can write application, in which i go to <a href="http://mydomain.com/products/53c68728c7e5a5381a000002" rel="nofollow">http://mydomain.com/products/53c68728c7e5a5381a000002</a> then one item will display? (53c68728c7e5a5381a000002 is id)</p>