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


Respect your Data

By Jason Dobry

Respect your Data

As your Angular app grows it will experience growing pains. I will cover various techniques for keeping your precious data under control before it outgrows you, including an introduction to angular-data.

  • 6,392