Hi Don,
() => {} are called arrow functions
<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions>and
are (not so) new to ES2015
<https://en.wikipedia.org/wiki/ECMAScript#6th_Edition_-_ECMAScript_2015>
I Updated the example a bit, to show you how you can handle your questions,
and moved it back to ES5
<https://en.wikipedia.org/wiki/ECMAScript#5th_Edition>. I hope it's easier
to understand for you now.
If you still have questions, don't hesitate to ask!
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.