Reputation: 1
I was not able to find a way to connect my database to my user interface which I make in angular. So anyone can suggest to me how to overcome my problem by the simpler way??? needed a simpler code to rectify the error
Upvotes: 0
Views: 1168
Reputation: 2398
Use MongoDB Stitch
import { Component, OnInit } from "@angular/core";
import { StitchClientFactory } from "mongodb-stitch";
Upvotes: 2
Reputation: 116
You cannot directly communicate to any database via angular. You need to create middleware(server) using nodejs, python or any other.
Upvotes: 2