my code is :
ngAfterViewInit() { this.catId = this.navParams.get('cat').id }
everything is working as expected but when I refresh page using chrome refresher there is error
TypeError: Cannot read property 'id' of undefined
my code is :
ngAfterViewInit() { this.catId = this.navParams.get('cat').id }
everything is working as expected but when I refresh page using chrome refresher there is error
TypeError: Cannot read property 'id' of undefined