Activities of "alpisala"

You are the man! It worked, thank you so much.

Oh sorry I didnt realized there was a log for the request here you go.link to my logs

Hi again alpisala,

Can you please try to provide it in AppRoutingModule ?

It Worked! Thank you.

Hi! Thank you for your replies. But it still doesnt work.Here is my code: items-routing.module.ts:

const routes: Routes = [
  { path: 'services', component: ServicesComponent,title:"Services"},
  { path: 'service/::itemId', component: ServicePageComponent,title:"Service" },
  { path: 'item/::itemId', component: ItemPageComponent,title:"Item" },
  { path: '::isMatClass', component: ItemsComponent,title:"Items" },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
  providers: [
    {
      provide: TitleStrategy,
      useClass: TemplatePageTitleStrategy
    }
  ]
})
export class ItemsRoutingModule{ }

TemplatePageTitleStrategy.ts:

import { LocalizationService } from "@abp/ng.core";
import { Injectable, inject } from "@angular/core";
import { Title } from "@angular/platform-browser";
import { RouterStateSnapshot, TitleStrategy } from "@angular/router";

@Injectable()
export class TemplatePageTitleStrategy extends TitleStrategy {
    protected readonly title = inject(Title);
    protected readonly localizationService = inject(LocalizationService);
  
    override updateTitle(routerState: RouterStateSnapshot) {
      const title = this.buildTitle(routerState);
      const localizedTitle = this.localizationService.instant(title);
      this.title.setTitle(localizedTitle);
    }
  }

Im on turkish language right now and my tr.json has the keys...

Hi,

We do this in our microservice project.ExampleService::LocalizationKey. ExampleService is the name of our service.

Hi again! Sorry I didnt get what you mean by that. I looked at microservice template documentation but couldnt find anything...

Yes, i did it with abp suite and make sure the versions are a match.

Is there a way to use lepton in normal project and basic in docs module ?

I have seen that post before but i think I didnt give it much attention. Giving TextExpression to TextEdit fixed it for me. Thank you.

Showing 1 to 8 of 8 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07