mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
test(slides): fix slides test to remove errors
This commit is contained in:
@ -22,14 +22,13 @@ class MyApp {
|
|||||||
|
|
||||||
this.http.get(baseUrl + '?method=flickr.groups.pools.getPhotos&group_id=1463451@N25&safe_search=1&api_key='
|
this.http.get(baseUrl + '?method=flickr.groups.pools.getPhotos&group_id=1463451@N25&safe_search=1&api_key='
|
||||||
+ FLICKR_API_KEY + '&nojsoncallback=1&format=json&tags=' + tags)
|
+ FLICKR_API_KEY + '&nojsoncallback=1&format=json&tags=' + tags)
|
||||||
.map(res => res.json())
|
|
||||||
.subscribe(data => {
|
.subscribe(data => {
|
||||||
this.images = data.photos.photo.slice(0, 20);
|
this.images = data.json().photos.photo.slice(0, 20);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.slider.update();
|
this.slider.update();
|
||||||
});
|
});
|
||||||
}, (err) => {
|
}, (err) => {
|
||||||
alert('Unable to load images');
|
console.info('Unable to load images');
|
||||||
console.error(err);
|
console.error(err);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user