wiki:DeveloperGuidelines/EdenMobile/Services/emReset

Version 1 (modified by Dominic König, 5 years ago) ( diff )

--

emReset

Table of Contents

  1. Reset

The emReset service provides methods to reset (="clean") the local database.

Reset

The emReset.reset() method removes all current user resources, including their database tables and schemas. This is an asynchronous process, so the method returns a then-able promise that can be used to restore the UI, e.g. by routing to another page.

emReset.reset().then(function(){
    $state.go('index', {}, {location: 'replace', reload: true});
});
Note: See TracWiki for help on using the wiki.