Hi , I’m making a game application connected to the database , I’m having a problem how can I add the userName and score to database? Can you please help me Thanks
Here’s a really straightforward guide on how to implement databases with Ionic using Firebase: https://thinkster.io/learn-to-build-realtime-webapps/
However regardless of the type of database you are using, the basic premise to send and retrieve data will be to set up an $http call inside your controller to send a GET method (to retrieve the username and score) and a POST method (to create/update)
https://docs.angularjs.org/api/ng/service/$http
http://learn.ionicframework.com/formulas/backend-data/
2 Likes
Wow, Thanks Let me try this