My ng-repeat list does not update after i've done a push update in my 
server controller.

My server controller:

var Ride = require('./ride.model');
var Comment = require('../comment/comment.model');

exports.addCommentToRide = function(req, res) {


  var id = req.params.id;
  var c = req.body.comment;
  var comment = new Comment({name: c.name});


  Ride.update({_id : id}, { $push: { comments: comment} },
    {upsert:true},
    function(ride,err){
      return res.json(200, ride);
    }
  );
};


Can someone explain to me what i am doing wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to