This is definitely a newbie question.
I have seen countless tutorials and course on using Angular with MongoDB using Node.js. But I am not sure how to set it up when not using node.js. I would like to build an Angular service that queries a MongoDB server but it doesn't seem possible. The first hurdle that I run up against is that 'require' doesn't seem to be defined. For example I have (excuse the TypeScript):
export class FormService implements IFormService { static $inject = ['$q'];
constructor(private $q: ng.IQService) {
this.mongo = require('mongodb')
}
How do I gain access to the node.js drivers?
Thank you.
Kevin