Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created July 8, 2017 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/084d9139dd319db89d845bb4f373fd40 to your computer and use it in GitHub Desktop.
Save matthieu-D/084d9139dd319db89d845bb4f373fd40 to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { Http } from '@angular/http';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
constructor(public navCtrl: NavController, public http: Http) {
http.get('https://us-central1-todo-firebase-c4298.cloudfunctions.net/test')
.subscribe((data) => {
console.log('data', data);
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment