Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Injectable()
- export class ControlFacturasService {
- currentYear: any;
- private proveedoresCollection: AngularFirestoreCollection<any>;
- constructor(private afs: AngularFirestore, private fuseConfigService: FuseConfigService) {
- this.fuseConfigService.currentYear().subscribe(year => {
- this.currentYear = year;
- });
- this.proveedoresCollection = this.afs.collection('years/' + this.currentYear + '/controlFactura/config/proveedores');
- }
Advertisement
Add Comment
Please, Sign In to add comment