Hallo zusammen,

dies ist mein erster Eintrag hier. Habe gerade begonnen, mich in die oben 
genannten Themen einzuarbeiten und brauche eure Unterstützung. Ich habe ein 
Model erstellt:

var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var ArticleCategory = mongoose.model('ArticleCategory', {
    DisplayName: String, //
    Published: Date,
    commentsAllowed: Boolean,
    Visibility: Boolean,
    AutorID: {type: Schema.ObjectId, ref: 'User'},
    ModificationDate: Date,
    ModificationCounter: Number,
    LastModificationBy: {type: Schema.ObjectId, ref: 'User'}
});



und in meiner routes.js anschließend ein

module.exports = function (app, passport) {

app.get('/api/article_categories', function (req, res) {
        ArticleCategory.find(function (err, article_categories) {
            if (err) {
                res.send(err);
            }
            res.json(article_categories);
        });
    });

});


Wenn ich jetzt aber die Seite über localhost/api/article_categories lade 
erhalte ich nur ein leeres [ ].
Keine Einträge im Error-Log...

Woran liegts? Was mache ich evtl. falsch?

-- 
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