services-and-dependency-injection-slides.pdf

(281 KB) Pobierz
Retrieving Data Using Http
Deborah Kurata
CONSULTANT | SPEAKER | AUTHOR | MVP | GDE
@deborahkurata | blogs.msmvps.com/deborahk/
Web Browser
index.html
Web
Server
index.html
JavaScript
(http://mysite/api/products/5)
Response
JavaScript
Web
Service
Data
DB
Module
Overview
Observables and Reactive Extensions
Sending an Http Request
Exception Handling
Subscribing to an Observable
Application Architecture
Welcome
Component
App
Component
Product List
Component
Product Detail
Component
index.html
Star
Component
Product Data
Service
Observables and Reactive Extensions
Help manage asynchronous data
Treat events as a collection
-
An array whose items arrive
asynchronously over time
Are a proposed feature for ES 2016
Use Reactive Extensions (RxJS)
Are used within Angular
Zgłoś jeśli naruszono regulamin