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 67 posts 233 karma points
    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 1285 posts 3917 karma points c-trib
    Mar 07, 2023 @ 15:05
    Dan
    0

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

  • Johan Reitsma 67 posts 233 karma points
    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 1749 posts 6114 karma points MVP 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.

Please Sign in or register to post replies

Write your reply to:

Draft