Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to connect mysql db using angular js without php code

Is it possible to connect MySql db using angularjs without PHP code? based on client side scripting we can't connect MySql db. Is it any other way to connection?

like image 883
Anandha Mariappan A Avatar asked Aug 05 '15 10:08

Anandha Mariappan A


1 Answers

If you wish to use just Angular for accessing your database, then discard PHP all together, and switch to something like Firebase. It will allow you to do almost everything from your Angular application (not saying that you should do it that way, but you could).

AngularJS is a Front-end framework, and it should be used in combination with some server side language: Java/C#/NodeJS/PHP...

But to answer your question directly: No, you can't access MySQL from Angular.

like image 184
Nemanja Milosavljevic Avatar answered Oct 02 '22 21:10

Nemanja Milosavljevic