Open Closed

Change of default app title #8574


User avatar
0
sahanaacharya created

Hi Team,

We have tried renaming the app title using this.titleService.setTitle() and also tried using ngAfterViewInit as mentioned in previous tickets, It displays the renamed title only on initialization, and the title reverts to default(MyProjectName) on any action(click). Please let us know if we are missing anything.

  • ABP Framework version: v8.3
  • UI Type: Angular
  • Database System:EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

9 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello

    Can you please check this similar ticket https://abp.io/support/questions/8468/change-angular-title it will helps you.

    Thank you.

  • User Avatar
    0
    sahanaacharya created

    Hi Anjali,

    We had referred this ticket before raising a new ticket, The title changes on initialization of the app and it reverts on any action.

    Regards Sahana

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello

    Can you share your test project support@abp.io email along with ticket no.

    Thank you

  • User Avatar
    0
    sahanaacharya created

    Could you instead let us know where in UI code or Backend code is this data fetched from. That would be of more help.

    Regards Sahana

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    From Backend side you can change AppName in en.json file. From Angular side you can change index.html file. Using these two way you can change the title name also in app.component.ts file you can set setTitle

    Thank you.

  • User Avatar
    0
    sahanaacharya created

    Thank you for the details Anjali. Could you please help me with the path where i could find the en.json file mentioned for the backend.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    en.json file path is ProjectName.Domain.Shared/Localization/ProjectName/en.json in that you chagne AppName.

  • User Avatar
    0
    sahanaacharya created

    Thank you, replacing the backend file content worked for us.

    Regards Sahana

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Great :)

Made with ❤️ on ABP v9.2.0-preview. Updated on January 20, 2025, 07:44