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
@Component({ | |
templateUrl: 'app.html' | |
}) | |
export class MyApp { | |
public activeProfile: Profile; | |
constructor( | |
private afAuth: AngularFireAuth, | |
private profileProvider: ProfileProvider, | |
) { | |
afAuth.auth.onAuthStateChanged( user => { |
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
// Estrutura do Firebase Database | |
// { | |
// "formulario": { // Aqui ficam salvo as entradas que gerarão o grafico | |
// "formularioID":{ | |
// "uid": "464165dsada", | |
// "contador1": "dado 1", | |
// "contador2": "dado 2" | |
// } | |
// }, | |
// "grafico": { // Aqui fica salvo os dados para o grafico |
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 { AngularFireAuth } from 'angularfire2/auth'; | |
import { FirebaseStorageProvider } from './../firebase-storage/firebase-storage'; | |
import { File } from '@ionic-native/file'; | |
import { FilePath } from '@ionic-native/file-path'; | |
import { FileChooser } from '@ionic-native/file-chooser'; | |
import { Camera, CameraOptions } from '@ionic-native/camera'; | |
import { MediaCapture, | |
CaptureVideoOptions, | |
MediaFile, | |
CaptureError, |
NewerOlder