Answer the question
In order to leave comments, you need to log in
How to use database for Angular 2 on hosting?
I want to host an Angular site. How can I access the database? You need to use something like https://mlab.com/ or you can just somehow place the database on the hosting
Answer the question
In order to leave comments, you need to log in
hosting technical support usually answers this question.... perhaps the address of the database server will not change - localhost
Just using the base through Angular will not work. Because Angular is for front end development.
To connect to the database, you need to use another language, for example php, java, c#, nodejs, write a backend on one of them, connect to the database, and from there transfer data or receive it via api. And you just don't connect like that.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question