This file contains hidden or 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
// | |
// Description Switch problem in Swift solution | |
// | |
// Author: Paul Ossenbruggen | |
// Date: Nov 8, 2015 | |
// Language: Swift 2.1 | |
// See comment below for problem statement. This solves the second version where we don't know the state | |
// of the switch at the beginning. | |
// |
This file contains hidden or 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
# Firestore Security Rules - Examples | |
Default: Every resource is locked down by default, and its a redundant rule, but can be a good reminder in the start of rules file | |
service cloud.firestore { | |
match /databases/{database}/documents { | |
match /{document=\*\*} { | |
allow read, write: if false; | |
} | |
} | |
} |
This file contains hidden or 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 { AngularFirestoreCollection, AngularFirestoreDocument, AngularFirestore, DocumentReference, DocumentSnapshot } from '@angular/fire/firestore'; | |
import { Productos } from '../interfaces'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class ProductosService { | |
/** Colecciones */ | |
public productosCollection: AngularFirestoreCollection<any>; | |
/** Documentos */ |