mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(): remove Ionic's HTTP service
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import {App, IonicApp, Http} from 'ionic/ionic';
|
||||
import {App, IonicApp} from 'ionic/ionic';
|
||||
|
||||
|
||||
@App({
|
||||
@ -17,6 +17,7 @@ class MyApp {
|
||||
|
||||
let baseUrl = 'https://api.flickr.com/services/rest/';
|
||||
|
||||
// TODO: update to use angular2's HTTP Service
|
||||
Http.get(baseUrl + '?method=flickr.groups.pools.getPhotos&group_id=1463451@N25&safe_search=1&api_key=' + FLICKR_API_KEY + '&jsoncallback=JSON_CALLBACK&format=json&tags=' + tags, {
|
||||
method: 'jsonp'
|
||||
}).then((val) => {
|
||||
|
@ -1,10 +1,7 @@
|
||||
import {App, IonicApp, Http} from 'ionic/ionic';
|
||||
import {App} from 'ionic/ionic';
|
||||
|
||||
|
||||
@App({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
class MyApp {
|
||||
constructor(private app: IonicApp) {
|
||||
}
|
||||
}
|
||||
class MyApp {}
|
||||
|
Reference in New Issue
Block a user