Created
July 8, 2017 21:33
-
-
Save matthieu-D/084d9139dd319db89d845bb4f373fd40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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