Upload
samoasao
View
213
Download
0
Embed Size (px)
DESCRIPTION
Promises
Citation preview
ADeepDiveintoPromisesAtthispoint,letsquicklydiveintothepowerfulconceptthatarepromises.PromisesinAngularJSarebasedonKrisKowalsQproposal,whichisastandardized,convenientwayofdealingwithasynchronouscallsinJavaScript.ThetraditionalwaytodealwithasynchronouscallsinJavaScripthasbeenwithcallbacks.Saywehadtomakethreecallstotheserver,oneaftertheother,tosetupourapplication.Withcallbacks,thecodemightlooksomething