Copied to clipboard

Flag this post as spam?

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


  • Umbracoraco 24 posts 154 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 24 posts 154 karma points
    Aug 22, 2023 @ 10:42
    Umbracoraco
    0

    Thanks! I wish I could simply inject it somehow.

  • Marc Goodson 2157 posts 14434 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 24 posts 154 karma points
    Aug 23, 2023 @ 05:07
    Umbracoraco
    0

    Thank you!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies