Posts

Showing posts from April 11, 2019

Strange subscribe behaviour

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box; } 0 I'm working with Angular 6 and I've got a strange subscribe behavior, so when I call reload method for three times from the constructor it works fine and I got three log message "subscribe". But when I click on a button which have (click)="reload()", the reload is executed but the subscribe is never executed. company-edit.component.ts export class CompanyEditComponent implements OnInit { company$ : Observable<any>; company: Company; formCompany: Company; refDb: any; constructor(private db: AngularFireDatabase, private companyService: CompanyService) { this.refDb = db.object('