Hello,
I've created a new section in the configuration, so I've added a new CustomConfigProvider to the core module :
Configuration.CustomConfigProviders.Add(new MenuConfigProvider());
I've checked that is correctly added to the configuration.
The think is that I don't know how to consume it in the angular application.
Thanks
5 Answer(s)
-
0
Hi,
You should be able to access it using
abp.custom
on the Angular side. Before writing any code, you can write abp.custom to browser console and see it your custom config is accessible. -
0
-
0
Hi,
You can modify
typings.d.ts
as below;declare namespace abp { namespace ui { function setBusy(elm?: any, text?: any, optionsOrPromise?: any): void; } namespace custom { } }
-
0
Is not working, still the same problem. I made it work with a cast (<any>abp).custom. but I'd like to fix it
-
0
Hi,
Could you create an issue on https://github.com/aspnetzero/aspnet-zero-core/issues ? We will fix it.
Thanks,