|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
import { Component, OnInit, OnDestroy } from '@angular/core';
|
|
|
|
|
import { Router } from '@angular/router';
|
|
|
|
|
|
|
|
|
|
import { Observable } from 'rxjs/Observable';
|
|
|
|
|
|
|
|
|
|
import { OperationCommerciale } from '../../../../models/OperationCommerciale';
|
|
|
|
@ -35,7 +34,7 @@ export class ListeOpCommercialComponent implements OnInit, OnDestroy {
|
|
|
|
|
(auth) => {
|
|
|
|
|
// console.log("afAuth.authState : " + auth.toJSON());
|
|
|
|
|
if (auth) {
|
|
|
|
|
this.opCommData = this.afDb.list('/OperationCommercial/');
|
|
|
|
|
this.opCommData = this.afDb.list('/OperationCommercial/').map((array) => array.reverse()) as FirebaseListObservable<any[]>;
|
|
|
|
|
}
|
|
|
|
|
console.log(auth.uid);
|
|
|
|
|
}
|
|
|
|
|