This is an ongoing angular OTA project. All the logging worked before, until suddenly they stopped working. None of the previously written console.log are outputting anything in the browser console.
ngOnInit() {
console.log('Hiiiii');
this.imgUrl = this.allapi.imageUrl;
this.journeyType = JSON.parse(sessionStorage.getItem('journeyType'));
this.bookingData = JSON.parse(sessionStorage.getItem('payload'));
if (this.bookingData.FareBreakdown.length > 0) {
this.fareBreakDown = this.bookingData.FareBreakdown;
} else {
}
this.calculateLayover();
sessionStorage.setItem('promoApplied', JSON.stringify(this.promoApplied));
if (this.journeyType == 3) {
this.layover_multi = JSON.parse(sessionStorage.getItem('layoverMulti'));
this.multiCityPlaces = JSON.parse(sessionStorage.getItem('multi_places_list'));
}
this.getFareBreakDown();
}
In the ngoninit() the first console.log is not showing any output in the browser.
stackblitz link: https://stackblitz.com/edit/angular-5pvvrq