Respect your Data


An introduction to Angular-data

@jmdobry


$scope


A handy abstraction for binding data to a view


But what about:


retrieving data

(de)serializing data
transforming data
caching data
saving data
refreshing data
destroying data
managing data lifecycle


And don't forget:


localStorage
IndexedDB
HTTP
WebSockets
boilerplate

boilerplate

boilerplate



Write it all yourself?




Let's try it



Your app is born



You think it will grow up nicely


But you get this


or this


Simple Example



Less Simple Example



Complex Example



Creating a Service Layer



DRY and Abstraction



Enter Angular-Data


Under the Hood


Made with Slides.com