Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

229
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!