資源描述:
《angular 2.0 data persistence design doc》由會員上傳分享,免費在線閱讀,更多相關內(nèi)容在學術(shù)論文-天天文庫。
1、AngularJS2.0DataPersistenceDesignDocStatus:?DraftAuthors:?Jeff?Cross?(crossj@google.com)Ritchie?Martori?(ritchie@strongloop.com)Anant?Narayanan?(anant@firebase.com)ObjectiveThisdocumentisconcernedwiththedesignofdata-focusedAngularJSv2.0modules,consideredtobepartofthecoredistributio
2、nofAngular.EndUserStoriesThesestoriesdescribethekindsofappsthatshouldbeeasytobuildwithAngular2.0,focusingonapplicationdata,writtenfromtheenduser’sperspective.Somefeatures,likeoperationaltransformation,maynotbesupportedbythecoredatapersistenceframework,buttheyshouldbemadepossiblebym
3、echanismswithintheframework.Offline&RealtimeSynchronization(GithubClient)AsauserofagithubclientIwanttobeabletoinstantlystarttheappandseethelistofissuesthatwereassignedtome.Iwanttobeabletoreadthedescriptionoftheseissuesandpostcomments.Ifforwhateverreasonmynetworkconnectionisflakyoru
4、navailable,IwanttobenotifiedASAPthatI'mworkingintheofflinemode,butIwanttobeabletocontinuebrowsingtheissuesandpostcommentswithoutanydelaysorinterruptions.Itshouldbecleartomewhichofmynewcommentsweresynchronizedwiththeserverandwhichwereonlystoredinthelocalstorage.Ishouldalsobeabletoad
5、dcommentsandothermetadatatoissues,whichwilleventuallybepersistedtootheruserswhennetworkconnectivityisrestored.OfflineAccessPolicies(MobileMusicPlayer)Asamusiclisteneronmywaytowork,I'dliketouseawebbasedaudioplayeronmyphonetoplaymusicIwouldenjoy.AsImovefromhomewifi,tocellulardatanetw
6、ork,tocoffeeshopwifi,Iwantmusictoplaywithoutskippingabeat.Thenetworkinmyhomeallowsmetostreammusicwithoutanyissues,buteventhoughIhavefullbarsonmyphone,itisn'tfastenoughtostreammusicwithoutskippingabeat.Theappshoulddefaulttoplayingmusicthatisavailableonthelocaldiskandonlystreamsongsw
7、henthenetworkiscapable.WhenIamdriving,theappshouldmakethechoiceformesoIdon'tcrashintoapole.Ishouldbeabletoskipsongsandsearchmylocallibraryevenwhenstreamingmusicisn'tpossible.Whentheappisn'tbeingintelligent,Ishouldbeabletoforceittoonlyusesongsonthelocaldisk.RealtimeMulti-UserPresenc
8、e(GithubClient)Asauserofag