Skip to content Skip to sidebar Skip to footer

Angularjs Schema Hasn't Been Registered For Model 'post'

I am trying to learn a little bit of MEAN stack and I started doing the tutorial on thinkster.io, and I made it to the part where you need to work with the server-side, which hones

Solution 1:

Check out the order of requires in app.js file, be sure to have

require('./models/Posts');

BEFORE the line

var routes = require('./routes/index');

where you need them.

Post a Comment for "Angularjs Schema Hasn't Been Registered For Model 'post'"