Copied to clipboard

Flag this post as spam?

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


  • Umbracoraco 23 posts 153 karma points
    Aug 22, 2023 @ 10:23
    Umbracoraco
    0

    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!

  • Johan Reitsma 68 posts 234 karma points MVP
    Aug 22, 2023 @ 10:37
    Johan Reitsma
    0

    You need to create an api controller where you provide this into your angular logic.

  • Umbracoraco 23 posts 153 karma points
    Aug 22, 2023 @ 10:42
    Umbracoraco
    0

    Thanks! I wish I could simply inject it somehow.

  • Marc Goodson 2155 posts 14408 karma points MVP 9x c-trib
    Aug 22, 2023 @ 19:56
    Marc Goodson
    100

    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

  • Umbracoraco 23 posts 153 karma points
    Aug 23, 2023 @ 05:07
    Umbracoraco
    0

    Thank you!

Please Sign in or register to post replies

Write your reply to:

Draft