Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created August 2, 2017 13:29
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/f17a68182258e5c8e8a36d6d89025ca7 to your computer and use it in GitHub Desktop.
Save matthieu-D/f17a68182258e5c8e8a36d6d89025ca7 to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
import { NavController, LoadingController } from 'ionic-angular';
import * as firebase from 'firebase';
import { Camera, CameraOptions } from '@ionic-native/camera';
import { environment } from '../../environments/environment';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
someTextUrl;
selectedPhoto;
loading;
currentImage;
constructor(public navCtrl: NavController, public camera: Camera, public loadingCtrl: LoadingController) {
firebase.initializeApp(environment.firebase);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment