Example using caffeinatedpersistence with angular/ionic