Need help debugging a subscribe statement where 'this' is always undefined inside it. Specifically, 'this.dataLoaded' is coming up as undefined. How can I ensure that it is defined during debugging?
this.router.events
.filter(event => (event instanceof NavigationEnd))
.subscribe((routeData: any) => {
if(!this.dataLoaded){
...
}
});