angular - run code when DOM of embded vendor component updates -
i using vendor component in mycomponent
@component({ selector: 'my-component', template: `<vendor-component></vendor-component>` }) export class mycomponent { constructor() { } }
i want jquery stuff every time after dom of embeded vendor component updates.
how can ? there hook on viewchild
?
i want jquery stuff every time after dom of embeded vendor component updates.
that does not sound idea, not supposed mess dom directly.actualy, built-in directives not touch dom directly, use rootrenderer
/renderer
api.
maybe forking vendor component , changing way behaves better solution.
but, if don't want alter vendor's code, can try run function in afterviewchecked
hook :
export class mycomponent implements afterviewchecked { constructor() { } ngafterviewchecked(){ // stuff } }
Comments
Post a Comment