Using AngularJS, is it possible to query a database? Is there a best practice or preferred method for doing so?
I understand this can be done on a PHP Server, though what about a SQL Server?
The normal way to use data in Angular is to call your own web methods on your web server supporting the application. Those methods would then either call to SQL Server through code within that application or use other API's that would do those calls.
Even if you could, you would not want to do any kind of back-end call from the client.
$httpwhich is angular's ajax api to communicate with server side endpoint that would then communicate with database