DEV Community

Discussion on: Trouble with Angular ngOnInit

Collapse
jwp profile image
John Peters

Put a debugger statement before this line, then press f12 to open dev tools on next run.

debugger;
 this.currentUser = this.local.getObject(StorageItems.UserProfile) as IMSALUserProfile;
Enter fullscreen mode Exit fullscreen mode

When the debugger hits, press f10 to single step into the program but keep the browser console window open. You'll probably see some errors there.