I'm getting really confused and wondered if anyone can help me try to understand .subscribe in angular 2 rxjs.
If i have a page with a button to submit some form data, do i need to subscribe in order to post information or use a promise?
As my understanding is when you subscribe, then you click the button again, you will then have 2 instances of the subscribe and so on. Now i know what your going to say, well you can kill the subscription in the destroy or whatever, but that isn't my question.
My question is, if the form is never destroyed until you clicked the home button and the form was clearing upon submit in order to submit some more data, do I need to use Promise over Subscribe? As subscribe (from what I understand) is like a newsletter, the more you click subscribe, the more occurrences of the newsletter you will receive.
So which is best to submit data over and over again, without having multiple subscriptions?
myObsFunc(dataToSend).subscribe(err => console.log(err), () => console.log(success));
or
myObsFunc(dataToSend).toPromise().then().catch(e => console.log(e));