erdkse / adminlte-3-angular

Angular 18.0.0 start-up project with AdminLTE 3.2.0 template
https://erdkse.com/projects/preview/adminlte-angular
MIT License
235 stars 191 forks source link

Unable to retrieve the user data after the hard page refresh. #28

Closed k-jayaraman closed 3 years ago

k-jayaraman commented 3 years ago

Hello @erdkse ,

I've modified the UI little to support external apis but am unable to retrieve the user data after the hard page refresh.

 getUserProfile() {
        return this.http.get<any>(`${environment.apiUrl}/get_user_profile`,{ headers: this.headers })
        .subscribe((res: any) => {
            this.user = res;
        })
    }

I can't get the this this.user values after the hard page refresh

erdkse commented 3 years ago

Hard to tell the reason. But customization of the project is out of my scope.