Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Metronic


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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


I run a small bookstore and wanted to sell online. I needed a developer to build an e-commerce site fast. I checked out , 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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(