Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Darren Hunter 140 posts 232 karma points
    May 21, 2024 @ 13:11
    Darren Hunter
    0

    Block Grid Custom View using Angular to get settings

    Hi,

    Is there any way when building a custom view in the back office that is linking to an Angular controller, is there a way to get any of the values stored in the application.json file.

    I need to get the Google Maps API key so I can display the map correctly, in the preview I am building.

    I do not want to add the API key to the back office in the element / composition. As I do not want the key changing by any of the users.

    Thanks Darren

  • Huw Reddick 1929 posts 6717 karma points MVP 2x c-trib
    May 21, 2024 @ 16:13
    Huw Reddick
    0

    you could either use an api controller to return the value or set up a server variable

    https://archive.24days.in/umbraco-cms/2021/umbraco-9-server-variables/

Please Sign in or register to post replies

Write your reply to:

Draft