Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How do I pass a value from AppSettings into angular controller for backoffice block editor plugin?
For example, I need to provide ApiUrl to myComponent.controller.js
Thank you!
You need to create an api controller where you provide this into your angular logic.
Thanks! I wish I could simply inject it somehow.
Hi Umbracoraco
You could set it up as a Server Variable, great article here that explains this approach...
https://archive.24days.in/umbraco-cms/2021/umbraco-9-server-variables/
Regards
Marc
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How do I pass a value from AppSettings into angular controller for backoffice block editor plugin?
How do I pass a value from AppSettings into angular controller for backoffice block editor plugin?
For example, I need to provide ApiUrl to myComponent.controller.js
Thank you!
You need to create an api controller where you provide this into your angular logic.
Thanks! I wish I could simply inject it somehow.
Hi Umbracoraco
You could set it up as a Server Variable, great article here that explains this approach...
https://archive.24days.in/umbraco-cms/2021/umbraco-9-server-variables/
Regards
Marc
Thank you!
is working on a reply...