that's a js promise. see https://docs.angularjs.org/api/ng/service/$q
the function given in then will be called with the return valueof
get('session') if it succeeds.
bg,
Johannes
Am 06.03.2015 um 10:11 schrieb foysal foysal:
I got the below code in a tutorial. I would like to know more about
.*get('session') *and* .then()*.
Data.*get('session').then(*function (results) { });
Thanks
Foysal
--
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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
--
--
Mit freundlichen Grüßen
Johannes Schneider
Front-End-Entwickler
Philippka-Sportverlag
Rektoratsweg 36
48159 Münster
Tel.: 0251/23 005-27
Fax: 0251/23 005-79
www.philippka.de
Philippka-Sportverlag GmbH & Co. KG - AG Münster HRA 9751
Persönl. haftende Gesellschafterin: Philippka Verwaltungs-GmbH
AG Münster HRB 14729 - Geschäftsführer: Ferdinand Honig, Thorsten Krybus
--
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.