How to connect mongoDB to angular2 app?

后端 未结 2 1911
借酒劲吻你
借酒劲吻你 2021-02-04 18:03

I have angular2 & mongoDB configured. So far I am able to read json files using http service but I want to develop a complete application which will have databa

2条回答
  •  既然无缘
    2021-02-04 18:57

    You should use a server side framework like hapijs, expressjs etc where you have to make a connection by mentioning your database url like

    `mongodb://username:password@ds012367.mlab.com:12367/dbName

    which then connects your app to database.

提交回复
热议问题