Copied to clipboard

Flag this post as spam?

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


  • Johan Reitsma 68 posts 234 karma points MVP
    Apr 11, 2022 @ 09:46
    Johan Reitsma
    0

    AngularJS - ng-html-bind

    hi, I have a question about AngularJS and Umbraco 9. We are trying to use the preview like https://24days.in/umbraco-cms/2021/advanced-blocklist-editor/ and it works except that javascript isn't executed if the partial is loaded with AngularJs, but we can load scripts using a different way but then the document.queryselector isn't finding the newly added elements. Is there a way to fix this? Is now using ng-html-bind but ng-html-bind-unsafe isn't working. Any way to fix this?

  • Dan 1288 posts 3942 karma points c-trib
    Mar 07, 2023 @ 15:05
    Dan
    0

    Hey Johan, did you find a way to get this working?

  • Johan Reitsma 68 posts 234 karma points MVP
    Mar 15, 2023 @ 09:31
    Johan Reitsma
    0

    we changed the logic to load an element using iframes. My angular skills are not that great so this was the quick fix.

  • Huw Reddick 1932 posts 6722 karma points MVP 2x c-trib
    Mar 15, 2023 @ 10:10
    Huw Reddick
    0

    You will need to write your own custom view plugin in order to do this.

  • 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