docs(): adjust log messages in photo library example callbacks (#1851)

* Move error message to the error callback

* Log a debug message in complete callback
This commit is contained in:
Tom Sundstrom 2017-08-24 02:39:04 +03:00 committed by Ibby Hadeed
parent aa4c3b3787
commit 5505e5f064

View File

@ -31,8 +31,8 @@ import { Injectable } from '@angular/core';
* console.log(libraryItem.albumIds); // array of ids of appropriate AlbumItem, only of includeAlbumsData was used * console.log(libraryItem.albumIds); // array of ids of appropriate AlbumItem, only of includeAlbumsData was used
* }); * });
* }, * },
* error: err => {}, * error: err => { console.log('could not get photos'); },
* complete: () => { console.log('could not get photos'); } * complete: () => { console.log('done getting photos'); }
* }); * });
* }) * })
* .catch(err => console.log('permissions weren\'t granted')); * .catch(err => console.log('permissions weren\'t granted'));