сервисы в Angular js

  • Published on
    22-Jun-2015

  • View
    1.407

  • Download
    1

Embed Size (px)

DESCRIPTION

Understanding AngularJS services

Transcript

  • 1. { AngularJS

2. (service) 3. AngularJS, , , ; ? 4. ? , service . 5. . AngularJS, , . 6. : 1. 2. , AngularJS, ; 3. , ( , ). 7. ? : 1. . , ; 2. API, (, , AJAX). API ; 3. () ; 8. Use case #1 : http://plnkr.co/edit/lFehxtraU4PDlbZNgcYK?p=preview 9. Use case #2 API: http://plnkr.co/edit/8r7wZtGouOUTLDfKFiHC?p=preview 10. (factory) 11. : 1. (, , , ); 2. . : , , , , . 12. ? , : 1. - , - . ; 2. .