ng-repeat in AngularJS, Mongoose, Express ng-repeat in AngularJS, Mongoose, Express mongoose mongoose

ng-repeat in AngularJS, Mongoose, Express


As far I see you are only sending a response with no data from the server to the client, how are you going to pass the lecturetest list to the client?

my suggestion is to send a json response and read it in your $resource object tipically the flow is the following: (let's assume that you are using moongose)

app.post('/api/lecture', function(req, res, next) {    var lecture = new Lecture({        lecturetext: req.body.lecturetext    });    lecture.save(function(err) {        if (err) return next(err);        //nested operation, save and get list of lectures        lecture.find({param: anyParam }, function(err, doc){            if(err){                return next(err);             }else{                //send information as json                res.send(200, {data: doc});            }        });    });});

In the client side could be something like:

var LectureEndPoint = $resource('/api/lecture');var lecture = new LectureEndPoint();lecture.$save(function(res){ //return the value or do whatever you need to do to pass this information to your controller});


I think that you are missing the mark at your markup, try this and let me know:

<div>    <ul ng-repeat="lecture in lectures">        <li>{{lecture.lecturetext}}</li>    </ul></div>