luisruiz

Untitled

Feb 5th, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1.  
  2. @Injectable()
  3. export class ControlFacturasService {
  4. currentYear: any;
  5.  
  6. private proveedoresCollection: AngularFirestoreCollection<any>;
  7.  
  8. constructor(private afs: AngularFirestore, private fuseConfigService: FuseConfigService) {
  9.  
  10. this.fuseConfigService.currentYear().subscribe(year => {
  11. this.currentYear = year;
  12. });
  13. this.proveedoresCollection = this.afs.collection('years/' + this.currentYear + '/controlFactura/config/proveedores');
  14. }
Advertisement
Add Comment
Please, Sign In to add comment