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.
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
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/
is working on a reply...