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

228
Vistas
How to Retrieving data from Mongodb with Angular?

I'm trying to retrieve data from MongoDB with Angular but I don't really know how to since I'm quite new to this. I'm using node.js with an Express framework. I already have my MongoDB client and server running and using studio-3T for MongoDB as a GUI for mongo.

Here is the connection with mongodb in my app.js:

var MongoClient = require('mongodb').MongoClient

MongoClient.connect('mongodb://localhost:27017/', function (err, db) {
  if (err) throw err

  db.collection('loodgieters').find().toArray(function (err, result) {
    if (err) throw err
    else if (result.length) {
      result.render('loodgieters', {
        "loodgieters" : result
      });  
    }
    console.log(result);  
  });
});

In MongoDB, I have added a collection named "loodgieter". key: hometext. value: this is some text

Now, I need to use angular to somehow access this collection and show the data in my HTML page

Anyone an idea?

about 4 years ago · Santiago Trujillo
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