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

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

about 4 years ago · Santiago Trujillo
1 answers
Answer question

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

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