Cloud connection with angularjs or ionic?

How to save the form data’s to centralized cloud storage?
Can any one help me here? I have no idea as how to start with it.
My concept is saving all form fields to local storage, i am done with it.
But how to connect and save to cloud?$http