Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

187
Vistas
Can I use Angular to retreive data from Mongodb?

I'm trying to get data from my MongoDB displayed in my HTML page. Is it possible to get this done by Angular or do I need a templating engine for this? I'm using Express on Node platform.

I've already managed to get my POST done with Angular.

Here is my server call to MongoDB:

router.get('/getdata', function(req, res, next){
  UserData.find()
    .then(function(doc){
      console.log('Data successfully retrieved');
      res.render('index', {items: doc});
    });
});

Now only my index page is a template(Jade). The rest of my pages are routed with Angular and are regular HTML pages. I thought there was a way to display MongoDB data with Angular in HTML using these quotes {{}}, but I dont't know how this works

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I would suggest you to create API in node.js which will directly connect to Mongodb, and then use that API in AngularJS to bind the data in HTML. You can check Using AngularJS with MongoDB

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda