ng build appname --prod
Hi Mehmet
Yes no problem.
I would like to remove these from the environment.ts file in my angular application.
application: {
name: 'Test'
},
oAuthConfig: {
issuer: 'https://localhost:44373',
clientId: 'Test_App',
dummyClientSecret: '1q2w3e*',
scope: 'Test',
showDebugInformation: true,
oidc: false,
requireHttps: true
},
apis: {
default: {
url: 'https://localhost:44373'
}
},
localization: {
defaultResourceName: 'Test'
}
Add them to the appsettings.json in the HttpApi.Host project where I can control the values with transforms and have all application settings in one place.
Then when my angular app starts up it loads those values from the ConfigState:settings rather than from the environment.ts file.
I see the environment settings get passed into the CoreModule like this.
CoreModule.forRoot({
environment,
requirements: {
layouts: [...LAYOUTS]
}
}),
Would it be possible to somehow get the settings from ConfigState and completely replace the environment settings before passing it to the CoreModule above?
Hi Mehmet
It looks like there was a problem with the build of the angular application.
This problem is sorted out.
Thanks.
Thanks alper. I was able to download the source code
Hi
I am trying to override the class in your example above. I have added it to the angular applications styles.scss file and I am able to see the style is there when viewing it in the browser. It is however not overriding the lepton theme's style.
We have multiple angular applications and each application needs its own custom style.
Can you please give me an example of where and how I should be overriding the lepton theme?
Hi alper
Completely forgot about the !important.
I am able to override now.
Thank you.
Thank you Mehmet.
I completely forgot about the !important.
I am able to override what I need to now.
Hi Mehmet
Thanks. I am already protecting my routes with the AuthGuard.
Any idea when this fix will be released?
Hi
We are getting some errors after updating to version 2.8. We are using the Angular frontend.
This error happens when the app loads up:
core.js:6210 ERROR TypeError: Cannot read property 'objectExtensions' of undefined
at ɵ1 (volo-abp.commercial.ng.ui.js:3358)
at wrappedSelectorFn (ngxs-store.js:2865)
at memoized (ngxs-store-internals.js:59)
at selectFromRoot (ngxs-store.js:2901)
at ngxs-store.js:2896
at Array.map (<anonymous>)
at MapSubscriber.selectFromRoot [as project] (ngxs-store.js:2892)
at MapSubscriber._next (map.js:29)
at MapSubscriber.next (Subscriber.js:49)
at StateStream._subscribe (BehaviorSubject.js:14)
There are also these warnings in the browser console:
Could not find localization source: TextTemplateManagement abp-ng.core.js:1014
The localization source separator (::) not found. abp-ng.core.js:1014
All the abp screens are displaying like this too: