Authorize.component.ts
Constructor(private authService:Authservice) { authService.getUserDetails(localstorage.getItem(\'jwt_token\')).subscribe((){--my code-