I tried, but this time the home page was not loaded at all. If we call this template directly without using open Id, there is no problem, it works with the menu link, but when I use openId conncet, the menu links do not open or close at all, other buttons and functions do not work either.
isLoggedIn(): boolean {
return this.oauthService.hasValidAccessToken();
}
login() {
if (!this.oauthService.hasValidAccessToken()) {
// EÄŸer geçerli bir eriÅŸim belirteci yoksa, kimlik doÄŸrulama akışını baÅŸlat
this.oauthService.initImplicitFlow();
} else {
// EÄŸer geçerli bir eriÅŸim belirteci varsa, kullanıcıyı belirlediÄŸiniz sayfaya yönlendir
/* this.router.navigate(['/']);*/
// Sayfayı yenile
}
}
logout(): void {
if (this.oauthService.hasValidAccessToken()) {
this.oauthService.logOut();
localStorage.removeItem('accessToken');
this.router.navigate(['/']); // BaÅŸlangıç sayfasına yönlendir
}
// Oturumu kapat ve kullanıcıyı baÅŸlangıç sayfasına yönlendir
} app.component.ts
{
path: 'home',
component:HomeComponent
},
{
path: "table",
component:TableComponent
},
{
path: "list",
component:ListComponent
},
{ path: 'firmadetail/:firmaKodu', component: FirmaComponent },
{
path: 'list/firmadetail/:firmaKodu',
component:FirmaComponent
},
{
path: 'onay',
component:ApprovalComponent
},
{ path: 'firmdetail/:firmaKodu', component: FirmEditComponent },
]; routing
<div *ngIf="!isLoggedIn()">
<h1>HoÅŸ Geldiniz!</h1>
<p>Burada oturum açabilirsiniz.</p>
<button (click)="login()">Oturum Aç</button>
</div>
<div *ngIf="isLoggedIn()">
<app-home></app-home>
</div>
app.component.html
<app-business-partners-administrator></app-business-partners-administrator> home.componnet.html
I run a small bookstore and wanted to sell online. I needed a developer to build an e-commerce site fast. I checked out https://s-pro.io/ , which specializes in online stores. Their site details secure checkout systems, inventory tools, and SEO optimization. They also offer free trials and customer support. The website they created makes shopping easy for my customers.
Hi,
Sorry for the delay in response. Please refer to my last reply to this related question.
Link
Thank you