Sander,
I have a few questions to bug you on your sample form and angularJS script.
a) currently the script outputs form data to console, what if we want a URL
to process the form with GET method, then, would $http.get('myURL') kicks
in?
and if we want POST method, it would then be $http.post...
Now, where and how do we define the "$http" here?
b) what exactly does
this.submit = () => { // code here }
mean?
On form submission, do the following:
Does the () mean to the current function?
Does the => mean plus the code within the { } ?
c) what if I only want to send one field of the FORM, namely,
this.formData.id via the GET method and also to receive server/url
response?
This question is obviously tied to the above b).
Many thanks.
On Friday, July 8, 2016 at 4:33:46 PM UTC-4, Don wrote:
>
> Sander,
>
> I just took a look at your sample. Very interesting. Thank you very much.
>
> Don
>
> On Friday, July 8, 2016 at 2:37:21 AM UTC-4, Sander Elias wrote:
>>
>> Hi Don,
>>
>> I got that you are an angular beginner ;).
>> But really, do yourself a favor, and read the styleguide a couple of
>> times. While you might not understand (all of) it right now, it will help
>> you to circumvent certain common pitfalls.
>>
>> Regards
>> Sander
>>
>>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.