Ready login page and register page using HTML and AngularJS. I have connected database PostgreSQL, but I don't know how to pass data from AngularJS frontend to Nodejs backend using PostgreSQL.
Dismiss
Announcing Stack Overflow Documentation
We started with Q&A. Technical documentation is next, and we need your help.
Whether you're a beginner or an experienced developer, you can contribute.
You can do it by several ways like using Using these you can pass data to Node.js backend(I assume "Express.js"). Since DB data will be executed by backend you just need to post your login or registration values to back-end. Here is below is a simple $http process:
Actually for login/registration and another security purpose I recommend using JSON Web Token (JWT). https://jwt.io/introduction/ |
|||
|
<form>
s, with POST or GET parameters. – Bailey S Aug 22 at 20:31