- Visão Geral
- Visão geral do Firebase por plataforma e por produtos
- Guias
- Um guia com instruções passo a passo dos recursos do Firebase
- Api Reference
- Informações detalhadas sobre cada classe e método no SDK do Firebase
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 { Injectable } from '@angular/core'; | |
import { Firestore, collectionData, collection, QueryConstraint } from '@angular/fire/firestore'; | |
import { addDoc, CollectionReference, deleteDoc, doc, getDoc, query, setDoc, updateDoc } from '@firebase/firestore'; | |
import { enableIndexedDbPersistence } from 'firebase/firestore'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class FirestoreService { |
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 {Injectable} from '@angular/core'; | |
import { | |
deleteObject, | |
getDownloadURL, | |
percentage, | |
ref, | |
Storage, | |
StringFormat, | |
uploadBytes, | |
uploadBytesResumable, |
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
<html> | |
<head> | |
<style> | |
html, | |
body { | |
width: 100%; | |
height: 100%; | |
padding: 0px; | |
margin: 0px; |
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
firebase emulators:start --import=./emulators-data --export-on-exit |
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 { Injectable, NgZone } from '@angular/core'; | |
import { | |
Auth, signOut, user, signInWithEmailAndPassword, createUserWithEmailAndPassword, | |
updateProfile, sendEmailVerification, sendPasswordResetEmail, User, authState, onAuthStateChanged, | |
ActionCodeSettings | |
// getAdditionalUserInfo, | |
// OAuthProvider, | |
// linkWithPopup, | |
// unlink, | |
// updateEmail, |
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
cleanString = (str: string) => str.replace(/[^\w ]/g, '').replace(/\s/g, ''); | |
hash = (str: string) => str.split('').reduce((prev, curr) => (((prev << 5) - prev) + curr.charCodeAt(0)) | 0, 0); | |
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
curl -sL firebase.tools | upgrade=true bash | |
curl -sL firebase.tools | uninstall=true bash |
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
sudo spctl --master-disable |
- Uma conta google
NewerOlder