Check the docs before asking a question: https://abp.io/docs/latest Check the samples to see the basic tasks: https://abp.io/docs/latest/samples The exact solution to your question may have been answered before, and please first use the search on the homepage.
Provide us with the following info:
🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.
- **Template**: app - **Created ABP Studio Version**: 0.9.23 - **Current ABP Studio Version**: 2.1.3 - **Tiered**: No - **Multi-Tenancy**: Yes - **UI Framework**: angular - **Theme**: leptonx - **Theme Style**: system - **Run Install Libs**: Yes - **Progressive Web App**: No - **Run Progressive Web App Support**: No - **Database Provider**: ef - **Database Management System**: postgresql - **Separate Tenant Schema**: No - **Create Initial Migration**: Yes - **Run Db Migrator**: Yes - **Mobile Framework**: maui - **Public Website**: No - **Include Tests**: Yes - **Kubernetes Configuration**: Yes - **Distributed Event Bus**: rabbitmq - **Use Local References**: No - **Optional Modules**: * GDPR * FileManagement * TextTemplateManagement * LanguageManagement * AuditLogging * Chat * OpenIddictAdmin
<br>
- Exception message and full stack trace: My Angular app is always showing the default text ProjectName.
You can access this endpoint I have deployed for testing
https://devapp.brandencoder.com/ with the default credentials
- Steps to reproduce the issue:
I am attaching the Angular config files you can access from the link below:
6 Answer(s)
-
0
- Solution
In ABP Angular + LeptonX, the text shown in the header/sidebar is taken from the Angular environment configuration, not from the backend. If it keeps showing
ProjectName, it means theapplication.namefield in your Angular environments still has the default value or the deployed build is not using the environment file you updated.Do the following:
- Update environment.ts (development)
Inangular/src/environments/environment.ts:
export const environment = { production: false, application: { name: 'Brand Encoder', // <- your project name here logoUrl: '/assets/images/logo.png', // optional }, // ... the rest is unchanged };- Update environment.prod.ts (production)
Since your dev app is deployed, it likely runs withproduction: true, so you must also update:
// angular/src/environments/environment.prod.ts export const environment = { production: true, application: { name: 'Brand Encoder', // <- same name or any text you want logoUrl: '/assets/images/logo.png', // optional }, // ... other config };Rebuild & redeploy the Angular app
From the
angularfolder:
# if you use yarn yarn yarn build --configuration production # or with npm npm install npm run build -- --configuration productionThen redeploy the new
distoutput to your server (however you are currently publishing the Angular app). After deployment, clear the browser cache/hard reload.Verify
- Open your app, log in, and check the top-left brand text: it should now display
Brand Encoder(or whatever you configured). - If it still shows
ProjectName, double‑check you actually deployed the newdistfiles and that you edited the same environment files used by the build configuration you are running.
- Open your app, log in, and check the top-left brand text: it should now display
Sources
- LeptonX Lite Angular – branding via
application.nameandlogoUrlinenvironment.ts:
https://abp.io/docs/latest/ui-themes/lepton-x-lite/angular - Angular menu/logo customization using
applicationsection in environment config:
https://abp.io/docs/latest/framework/ui/angular/modifying-the-menu
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
0
I have deployed the app in AKS. and this the response of getEnvconfig
{ "production": "true", "application": { "baseUrl": "https://devapp.brandencoder.com", "name": "Brand Encoder Dev", "logoUrl": "" }, "oAuthConfig": { "issuer": "https://devapi.brandencoder.com/", "redirectUri": "https://devapp.brandencoder.com", "requireHttps": "false", "requireHttpsMetadata":"false", "certificatePassPhrase":"<Removed>", "clientId": "<Removed>", "responseType": "code", "scope": "offline_access <Removed>", "strictDiscoveryDocumentValidation": false, "skipIssuerCheck": true }, "apis": { "default": { "url": "https://devapi.brandencoder.com", "rootNamespace": "Rootfly.Fillit" } } }
I have tested in my local as well
-
0
- Solution
The text you see (
ProjectName) is not taken fromenvironment.application.name.
It is a localization key rendered like this in the layout:{{ 'ProjectName' | abpLocalization }}Since there is a localization entry
"ProjectName": "ProjectName", the UI shows exactly that.To change it, update your Angular localization files:
Open the English localization file
In your Angular project:
angular/ src/ assets/ abp/ en.jsonChange the
ProjectNamevalueFind the
ProjectNameentry, which currently is something like:
{ "ProjectName": "ProjectName", ... }Change it to your desired name:
{ "ProjectName": "Brand Encoder Dev", ... }If you support other languages (e.g.,
tr.json,ar.json, …) update theirProjectNamevalues as well.- Rebuild and run
# from angular/ folder npm install # or yarn npm run start # for local # or npm run build -- --configuration production # for AKS/deploymentDeploy the new build to AKS, then hard‑refresh the browser (Ctrl+F5).
After this, the sidebar/header text where you currently see
ProjectNamewill showBrand Encoder Dev(or whatever value you put in the localization file), whilegetEnvConfigwill continue to reflect yourenvironmentsettings correctly.- Sources
- Angular localization and JSON files:
https://abp.io/docs/latest/framework/ui/angular/localization
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
0
-
0
- Solution
The reason you still see
ProjectNameis that it is coming from localization, not fromgetEnvConfigor any string in your source code.In LeptonX Angular, the brand text in the left menu uses a localization key (in the theme library).
If the key is not defined in your app’s localization, ABP shows the key itself.
So if the theme uses"ProjectName"and there is no translation, the UI displays exactlyProjectName.Since you couldn’t find
"ProjectName"in your solution, it is almost certainly defined in the theme’s template (node_modules), and you just need to provide a translation for that key.Do this:
1. Add the key to Angular localization
Edit your Angular localization JSON, for example:
angular/src/assets/abp/en.json:{ // ... existing keys "ProjectName": "Brand Encoder Dev" }If you have other languages (e.g.
ar.json,fr.json, …) add the same key there too:{ "ProjectName": "Brand Encoder Dev" }You don’t have to find an existing
ProjectNamekey.
Just add it – ABP will merge it with the built‑in resources and the theme’s{{ 'ProjectName' | abpLocalization }}will start using your value.2. Rebuild and run
For local:
cd angular npm install # or yarn npm run startFor AKS / production:
cd angular npm run build -- --configuration production # deploy the new dist/ to AKSThen hard‑refresh the browser (Ctrl+F5).
After this, the highlighted text that currently shows
ProjectNamewill displayBrand Encoder Dev(or whatever you set in the localization file), independent of whatgetEnvConfigreturns.
- Sources
- Angular localization & JSON files (how to add/override keys):
https://abp.io/docs/latest/framework/ui/angular/localization - LeptonX Angular theming (brand/logo controlled via theme + localization):
https://abp.io/docs/latest/ui-themes/lepton-x/angular
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
0




