I'm a newbie to AngularJS and have a little knowledge of JavaScript.
I'm trying to implement a login page where I have a URL to my server (http://somerandomip/user/get?p=retail123&username=retail123) would give me a JSON response with dummy data upon successful login.
If the username or password is invalid, the JSON response returned will have an error message in it.
I've tried looking for tutorials to do this in the most simple way possible but I can't seem to figure out how to use $http to get this done. I understand this is pretty n00b question but my lack of JavaScript knowledge doesn't help.
If you could direct me towards a basic demo of how to get this done, I'd appreciate it a lot. Thanks in advance.
Edit: I understand that sending password as GET is not safe, I'm just trying to get a working login first.
GET