Base solution for your next web application
Open Closed

Cannot find abp.setting.get(() anymore in Angular 2 #3678


User avatar
0
bilalhaidar created

Hello, In the ASP.NET MVC 5 / Angular Js, I was using abp.setting.get(). Now when I upgraded to the ASP.NET Core / Angular 2, I cannot find this function. Has anything been changed?

Also, back then, I used the Razor views and I was able to access this: SettingManager.GetSettingValue()

Now how to accomplish the same thing?

Thanks Bilal


5 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi,

    you should be able to use abp.setting.get(). What error are you getting?

  • User Avatar
    0
    bilalhaidar created

    I am migrating an old app to use ASP.NET Core and Angular 2. I haven't tried yet, but I tried to search for this "abp.setting.get()" in the source code for the Angular app, and I noticed you never call this. Don't you access Settings in the application? Usually I search for stuff in your app and try to learn from it.

    Thanks Bilal

  • User Avatar
    0
    alirizaadiyahsi created

    abp.setting.get() is in ABP framework. All templates uses this framework. So you can use this method if it is necessary.

  • User Avatar
    0
    bilalhaidar created

    And there is also abp.setting.values[]. Which one to use, are they the same?

  • User Avatar
    0
    alper created
    Support Team

    hi

    pls read the related docs

    <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Setting-Management">https://aspnetboilerplate.com/Pages/Doc ... Management</a>