unable to show username in angular
问题 i have implemented authentication using jwt tokenization and after login I want to display username on the navbar, but it is not showing anything and giving error on console "ERROR TypeError: Cannot read property 'username' of undefined" but after refreshing the page it is showing the username and still giving the same error on the console. Here is my code NavbarComponent.ts import { Component, OnDestroy } from '@angular/core'; import { AuthService } from '../../services/auth.service'; import