Forum - Help: simple DOM manipulation inside component

  • This topic has 0 replies, 1 voice, and was last updated 1 year ago by European Commission 32EUC_INST.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #151484
    European Commission 32EUC_INST
    Participant

    Hi,

    This seems like a simple task, but i cannot find how (I’m new to AngularJS).
    I want to manipulate the src of the thumbnail image in the search results.
    Can anyone explain?

    app.component(“prmSearchResultThumbnailContainerAfter”, {
    bindings: {
    parentCtrl: “<“,
    },
    controller: function ($scope) {
    this.$onInit = function () {
    {

    //manipulate image src here…

    }
    };
    }
    });

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.