Reputation: 343
If server side: how can we connect to the database?
I was using it in client side, but can it also be used server side?
If it cannot be used server side should I use php or nodejs (I need to design a website which has a huge data bandwidth)?
Upvotes: 23
Views: 28527
Reputation: 7279
Angular JS only works on the client-side. From my experience, I have found that it works best wih NodeJS (and in particular the ExpressJS framework) but any other server-side language could do.
AFAIK NodeJs makes it easier to manage big data.
Upvotes: 4
Reputation: 944320
It is purely client side.
If server side how can we connect to databases.
You either use a client side database or you get the data from the server using an appropriate protocol (typically this would be a web service accessed via Ajax).
if not used in server side which one is better php or nodejs..( i need to design a website which uses huge data and bandwidth..)
"Better" without lots of measurable requirements is highly subjective.
Upvotes: 25
Reputation: 5809
Angular JS is a client side JavaScript framework for data binding. etc..
You can use Node JS for your server side operations along with Angular JS.
or Any other server side languages like PHP, Java, Etc...
Upvotes: 10